reset password
Author Message
CSr_esco525
Posts: 15
Posted 15:28 Feb 26, 2017 |

The Person Class

A Person has a name and an Address (represented by an object of class Address, not a String). Note that the subclasses of Person inherit the fields and methods of Person. You may need to override some of the methods in the subclasses.

--------------------------------------------------------------------------------------

Sorry if this question sounds a little silly and easy, but is this saying that the Person Class is NOT a subclass of anything?

Andy Echeverria
Posts: 11
Posted 15:34 Feb 26, 2017 |

The person class is a class on its own. It is not a subclass. It takes the object of address as a parameter for the constructor. 

CSr_esco525
Posts: 15
Posted 15:39 Feb 26, 2017 |
Andy Echeverria wrote:

The person class is a class on its own. It is not a subclass. It takes the object of address as a parameter for the constructor. 

Oohh I see. Thank you for the help mate! :D