Skip to content

Instantly share code, notes, and snippets.

@adityaladwa
Created January 7, 2017 16:26
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 adityaladwa/c9e7b6e8a5492a628a88f6309b479a70 to your computer and use it in GitHub Desktop.
Save adityaladwa/c9e7b6e8a5492a628a88f6309b479a70 to your computer and use it in GitHub Desktop.
public class User {
private final String firstName;
private final String lastName;
private final int age;
public User(String firstName, String lastName, int age) {
this.firstName = firstName;
this.lastName = lastName;
this.age = age;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public int getAge() {
return age;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment