Using C++ create a base class called building that stores the number of floors, rooms and area. Create a derived class called house that inherits building and store number of bedrooms and bathrooms. Create another derived class called office that inherits house and store number of window. now show everything creating office class object.
Source: Windows Questions C++