Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 () \{ 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started