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.
You might also like to view...
A chart can be used to create a visual depiction of text and graphical data
Indicate whether the statement is true or false
Sheet ________ are the labels along the lower border of the workbook window that identify each worksheet
Fill in the blank(s) with correct word