Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class Person {
private String firstName;
private String lastName;
private int age;
public String getFirstName() { return this.firstName; }
public void setFirstName(String firstName) { this.firstName = firstName; }
public String getLastName() { return this.lastName; }
public void setLastName(String lastName) { this.lastName = lastName; }
public int getAge() { return this.age; }
public void setAge(int age) { this.age= age; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment