Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Students;
- public class Student {
- private String firstName;
- private String lastName;
- private int age;
- private String hometown;
- public Student(String firstName, String lastName, int age, String hometown) {
- this.firstName = firstName;
- this.lastName = lastName;
- this.age = age;
- this.hometown = hometown;
- }
- public String getFirstName() {
- return firstName;
- }
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
- public String getLastName() {
- return lastName;
- }
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
- public int getAge() {
- return age;
- }
- public void setAge(int age) {
- this.age = age;
- }
- public String getHometown() {
- return hometown;
- }
- public void setHometown(String hometown) {
- this.hometown = hometown;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement