Skip to content

Instantly share code, notes, and snippets.

@rajendrakumaryadav
Created December 17, 2019 18:59
Show Gist options
  • Save rajendrakumaryadav/00a50df58abd92496b5843edb8c09e77 to your computer and use it in GitHub Desktop.
Save rajendrakumaryadav/00a50df58abd92496b5843edb8c09e77 to your computer and use it in GitHub Desktop.
package in.co.dreamsdoor.beans;
public class Teacher {
private int id;
private String name;
private double salary;
public Teacher(int id, String name, double salary) {
this.id = id;
this.name = name;
this.salary = salary;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getSalary() {
return salary;
}
public void setSalary(double salary) {
this.salary = salary;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment