Created
December 17, 2019 18:59
-
-
Save rajendrakumaryadav/00a50df58abd92496b5843edb8c09e77 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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