Residence Class

The constructor takes an integer for the number of rooms, an integer for the number of external walls, and a boolean to indicate whether or not there is a washer.

Residence also has four methods:

The output of operator<< should be similar to the following.

Number of Rooms: 4
Number of Walls: 4
Washer: true
Number of Windows: 8
Property Value: 40000.0

As a reminder, public members and methods are accessible from any class, while private members and methods are only accessible from within the class in which they are declared. The protected provides protection midway between public and private. Only classes inherit from a class with protected items may access those items directly.