Skip to content

Instantly share code, notes, and snippets.

@codinko
Created November 21, 2019 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codinko/0e4bf3bb4b0829aa722fa3af15610771 to your computer and use it in GitHub Desktop.
Save codinko/0e4bf3bb4b0829aa722fa3af15610771 to your computer and use it in GitHub Desktop.
EmployeeClassWithIdNameDesig
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