Which of the following assignments would be a compilation error?
A) Assigning the address of a base-class object to a base-class pointer.
B) Assigning the address of a base-class object to a derived-class pointer.
C) Assigning the address of a derived-class object to a base-class pointer.
D) Assigning the address of a derived-class object to a derived-class pointer.
Correct Answer:
Verified
Q14: An abstract class will:
A) Have all zero
Q15: Problems using switch logic to deal with
Q16: Which of the following statements about polymorphism
Q17: Which of the following is not allowed?
A)
Q18: Polymorphism is implemented via:
A) Member functions.
B) virtual
Q20: If objects of all the classes derived
Q21: The C++ compiler makes objects take up
Q22: The _ operator returns a reference to
Q23: Dynamic_cast is often used to:
A) Perform type
Q24: The line: virtual double functionX() const =
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