Created
December 26, 2017 20:58
-
-
Save sigmadeltasoftware/57768cb52f04a7a9e7d50abeb0216517 to your computer and use it in GitHub Desktop.
IAA_2: Person entity
This file contains 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
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