Assigning a derived class reference to a base class variable is safe:
A) because the derived class has an object of its base class.
B) because the derived class is an object of its base class.
C) only when the base class is abstract.
D) only when the base class is concrete.
Correct Answer:
Verified
Q17: Polymorphism specifically enables the creation of programs
Q18: When used correctly,polymorphism will never require changes
Q19: The major drawback to polymorphically designed programs
Q20: Polymorphism involves:
A) the same message sent to
Q21: An abstract class cannot have instance data
Q23: You may define implementations for abstract methods
Q24: Consider the abstract class below:
Public abstract class
Q25: Operator is returns true if two matching
Q26: The keyword sealed is applied to methods
Q27: Classes and methods are declared sealed for
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