Description

Inheritance is used to implement an "is a" type of object relationship (for example, a Square is a type of Shape). In this lab, you have the following inheritance hierarchy. The base class is called Residence and the derived classes are House, Apartment, and Tent.

The classes House, Apartment, and Tent inherit from the Residence class. Thus, House, Apartment, and Tent are more specialized versions of Residence.

The Residence class has private data members for storing: