Question: Q5. (10 pts) Given the class specification below called, write the main.cpp file that will have two instances of the House class. The first instance
Q5. (10 pts) Given the class specification below called, write the main.cpp file that will have two instances of the House class. The first instance called house1 will contain a house with five windows and two doors. The next house house2 will contain a house with 32 windows and two doors. class Housel public: House(int window, int doors); void setNumberWindows(int enteredWindows); void setNumberDoors(int enteredDoors); int getNumberDoors(); int getNumberWindows); private int numWindows; int numDoors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
