A derived class can inherit “interface” or “implementation” from a base class. How do inheritance hierarchies designed for inheriting interface differ from those designed for inheriting implementation?

What will be an ideal response?


Hierarchies designed for implementation inheritance tend to define their functionality
high in the hierarchy—each new derived class inherits one or more methods that were
declared in a base class, and the derived class uses the base class implementations (sometimes
overriding the base class methods and calling them as part of the derived class implementations).
Hierarchies designed for interface inheritance tend to have their functionality defined lower in the hierarchy—a base class specifies one or more abstract methods that must be declared for each class in the hierarchy, and the individual derived classes override these methods to provide derived-class-specific implementations.

Computer Science & Information Technology

You might also like to view...

A PMT of zero can be used in the FV function

Indicate whether the statement is true or false

Computer Science & Information Technology

To delete a box from a SmartArt organization chart, you must display a ________ border

A) dotted line B) solid line C) double line D) dashed line

Computer Science & Information Technology

Which of the following is not needed to set up a user account in Linux?

a. Username b. Full name c. Password d. Login method

Computer Science & Information Technology

Before using an array in a program, what first must be done to the array?

A. declare it B. load it C. populate it D. instantiate it

Computer Science & Information Technology