Created
November 21, 2019 00:58
-
-
Save codinko/0e4bf3bb4b0829aa722fa3af15610771 to your computer and use it in GitHub Desktop.
EmployeeClassWithIdNameDesig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.codinko.caching; | |
public class Employee { | |
private int id; | |
private String name; | |
private String designation; | |
public Employee(int id, String name, String designation) { | |
super(); | |
this.id = id; | |
this.name = name; | |
this.designation = designation; | |
} | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
@Override | |
public String toString() { | |
return "Employee [id=" + id + ", name=" + name + ", designation=" | |
+ designation + "]"; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getDesignation() { | |
return designation; | |
} | |
public void setDesignation(String designation) { | |
this.designation = designation; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment