Skip to content

Instantly share code, notes, and snippets.

@sigmadeltasoftware
Created December 26, 2017 20:58
Show Gist options
  • Save sigmadeltasoftware/57768cb52f04a7a9e7d50abeb0216517 to your computer and use it in GitHub Desktop.
Save sigmadeltasoftware/57768cb52f04a7a9e7d50abeb0216517 to your computer and use it in GitHub Desktop.
IAA_2: Person entity
public class Person {
private String _firstName;
private String _lastName;
private int _age;
private Address _address;
public Person(String firstName, String lastName, int age, Address address) {
_firstName = firstName;
_lastName = lastName;
_age = age;
_address = address;
}
public String getFirstName() {
return _firstName;
}
public String getLastName() {
return _lastName;
}
// Rest of access methods should be below
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment