Question: Convert the following constructor to a constructor initialization list. House:: House () { houseNum = 1; price =1.00; } House() : houseNum(1), price(1.00) {} House::

 Convert the following constructor to a constructor initialization list. House:: House

Convert the following constructor to a constructor initialization list. House:: House () \{ houseNum = 1; price =1.00; \} House() : houseNum(1), price(1.00) \{\} House:: House().houseNum(1), price(1.00) }} House:: House() :: houseNum(1), price(1.00) \{\} House:: House() : houseNum(1), price(1.00) \{\} Question 19 Mustang is an object of type Car. Which statement invokes drive()? drive(135); mustang->drive(115); mustang.drive(145); Question 20 Which of the following statements is true about a class' private helper function? A private helper function can be called from main(). A private helper function helps private functions carry out their tasks. A private helper function cannot call other private helper functions. A private helper function helps public functions carry out tasks

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!