Write C Classes Inheritance Class Relationship Based Specification Given Housetypeh File Q37044535

Write a C++ classes with an inheritance class relationship basedon the specification given below.
In the HouseType.h file, should only contain the class and themembers prototypes.

1. Define a class called “HouseType” with the followingmembers.
a. Member variables should be “protected” in the class.
▪ double houseLength
▪ double houseWidth
▪ string houseTypeName
b. A constructor with default values that initializes these membervariables to zero 0 and “noType” OR to the values that aresupplied. (Only one constructor)
c. The class should have several member functions that are listedunder public access modifier.
▪ void setHouseDimension(string, double, double);
− //set the type of name, length and width of the house.
− // check

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.