Downcasting enables:
A) A derived-class object to be treated as a base-class object.
B) A base-class object to be treated as a derived-class object.
C) Making a base-class pointer into a derived-class pointer.
D) Making a derived-class pointer into a base -class pointer.
Correct Answer:
Verified
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
Q7: Virtual destructors must be used when:
A) The
Q8: The main difference between a pure virtual
Q10: Which of the following statements about virtual
Q11: Employee is a base class and HourlyWorker
Q12: What mistake prevents the following class declaration
Q13: To help prevent errors, apply C++11's _
Q14: An abstract class will:
A) Have all zero
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