Create a class called Building. It will have one data member of type string (used for a postal address). Define get and set functions and two constructors.
Create a class that inherits from Building called House. This class will have one data member called rooms. Define a set function that has both string and int parameters. Define getA (for address) and getR (for rooms) like in the Building class. Define both kinds of constructors for House. Bear in mind how much access the House class has to the members of Building class. Test in main by creating two objects of type House (default constructor and parameter constructor) and then test the public functions of House.