How does polymorphism promote extensibility?

What will be an ideal response?


Software that invokes polymorphic behavior is independent of the object types to which messages are sent. New object types that can respond to existing method calls can be incorporated into a system without requiring modification of the base system. Only client code that instantiates new objects must be modified to accommodate new types.

Computer Science & Information Technology

You might also like to view...

C++ allows you to redefine the way __________ work when used with class objects.

a. compiler errors b. preprocessor directives c. standard operators d. undefined variables e. None of these

Computer Science & Information Technology

Which of the following methods can be used to retrieve a series of items from an array?

A. range B. << C. slice D. range?

Computer Science & Information Technology

Which of the following memory types is located in the processor chip?

A. EDO B. L1 C. xD D. DDR

Computer Science & Information Technology

A training delivery method which encourages trainees to make the transition from a training environment to the business world is ____.

A. a tutorial B. a case study C. collaborative learning D. computer-based training

Computer Science & Information Technology