Multiple Choice
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
Correct Answer:
Verified
Q11: Downcasting enables:<br>A) A derived-class object to be
Q12: Which of the following statements is true?<br>A)
Q13: The main difference between a pure virtual
Q14: Which of the following would not be
Q15: Run-time type information can be used to
Q17: Dynamic_cast is often used to:<br>A) Perform type
Q18: Abstract classes do not necessarily have:<br>A) A
Q19: The line: virtual double functionX() const =
Q20: Abstract classes:<br>A) Contain at most one pure
Q21: Polymorphism is implemented via:<br>A) Member functions.<br>B) virtual