Question: C++ AHOW STEPS WITH //COMMENTS 2. Consider the class definitions given below. Using inheritance techniques design and fully describe Building, House, and School classes. Class

 C++ AHOW STEPS WITH //COMMENTS 2. Consider the class definitions given

C++

AHOW STEPS WITH //COMMENTS

2. Consider the class definitions given below. Using inheritance techniques design and fully describe Building, House, and School classes. Class Building House School Data members Numberof rooms Numberof rooms Numberof rooms Area Area Area NoOfBuildings(static) Numberofbedrooms Numberofclassrooms Numberofbaths Numberofoffices Methods Building) House) School) (functions) GetNoOf Rooms() GetNoOfRoomst) GetNoOfRoomst) SetNoOfRooms() SetNoOfRooms() SetNoOfRooms() GetArea) GetArea) GetAreal SetArea) SetAreal) SetArea) GetNoOfBuildings() GetNoOfBuildings() GetNoOfBuildings() GetNoOfBedrooms() GetNoOfClassrooms() SetNoOfBedrooms() SetNoOfClassrooms() GetNoOfBaths() GetNoOfOffices() SetNoOfBaths() SetNoOfOffices() NOTES: Constructors will be used to read data members from the keyboard Considering the data types of the corresponding data members you should determine and write the parameter list and returned data type for each function correctly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!