Multiple Choice
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
Correct Answer:
Verified
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
Q23: The line: virtual double earnings() const =
Q24: What mistake prevents the following class declaration
Q25: The C++ compiler makes objects take up
Q26: To help prevent errors, apply C++11's _
Q27: Concrete classes that inherit virtual functions but