Which of the following statements about polymorphism is false?
A) With polymorphism, you can direct a variety of objects to behave in manners appropriate to those objects without even knowing their types.
B) With polymorphism, new types of objects that can respond to existing messages can easily be incorporated into a system without modifying the base system.
C) Polymorphism enables you to deal in specifics and let the execution-time environment concern itself with the generalities.
D) To get polymorphic behavior among existing objects, those objects must be instantiated from classes in the same inheritance hierarchy.
Correct Answer:
Verified
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
Q15: Problems using switch logic to deal with
Q17: Which of the following is not allowed?
A)
Q18: Polymorphism is implemented via:
A) Member functions.
B) virtual
Q19: Which of the following assignments would be
Q20: If objects of all the classes derived
Q21: The C++ compiler makes objects take up
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