Answered step by step
Verified Expert Solution
Link Copied!

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::

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions