Personpublic class Person extends Object A sample class used in some of the notes accompanying this code set.
N.B. This is NOT "best practices": should all be private fields,
and get/set methods. (Done this way so examples are shorter). |
Fields Summary |
---|
private String | firstName | private String | lastName | public String | address | public String | phone | public String | Country |
Constructors Summary |
---|
public Person(String f, String l)
firstName = f;
lastName = l;
|
|