Virtual destructors must be used when:
A) The constructor in the base class is virtual.
B) delete is used on a base-class pointer to a derived-class object.
C) delete is used on a derived-class object.
D) A constructor in either the base class or derived class is virtual.
Correct Answer:
Verified
Q2: The line: virtual double earnings() const =
Q3: [C++11] In C++11, you can tell the
Q4: Which of the following would not be
Q5: Virtual functions must:
A) Be overridden in every
Q6: Abstract classes:
A) Contain at most one pure
Q8: The main difference between a pure virtual
Q9: Downcasting enables:
A) A derived-class object to be
Q10: Which of the following statements about virtual
Q11: Employee is a base class and HourlyWorker
Q12: What mistake prevents the following class declaration
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents