Declarations

Consider the following declarations: (1, 2, 3, 6, 7)

class houseType

 public:    void set(string, int, int, int, int, int, double, double);

     void print() const;

    void setStyle(string);

    string getStyle() const;

     void setNumOfBedrooms(int);

    int getNumOfBedrooms() const;

     void setNumOfBathrooms(int);

    int getNumOfBathrooms() const;

     void setNumOfCarsGarage(int);

    int getNumOfCarsGarage() const;

     void setYearBuilt(int);

    int getYearBuilt() const;

     void setFinishedSquareFootage(int);

    int getFinishedSquareFootage() const;

     void setPrice(double);

    double getPrice() const;

     void setTax(double);

    double getTax() const;

    houseType(string = “”, int = 0, int = 0, int = 0, int = 0,

               int = 0, double = 0, double = 0);

private:    string style;

    int numOfBedrooms;

    int numOfBathrooms;

    int numOfCarsGarage;

    int yearBuilt;

    int finishedSquareFootage;

    double price;

    double tax;

 ;

houseType newHouse; 

//variable declaration

a. How many members does class houseType have?

b. How many private members does class houseType have?

c. How many constructors does class houseType have?

d. How many constant functions does class houseType have?

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X