January 2014
Intermediate to advanced
736 pages
70h 43m
English
G.9 How does polymorphism enable you to program “in the general” rather than “in the specific”? Discuss the key advantages of programming “in the general.”
G.10 What are abstract methods? Describe the circumstances in which an abstract method would be appropriate.
G.11 How does polymorphism promote extensibility?
G.12 Discuss four ways in which you can assign superclass and subclass references to variables of superclass and subclass types.
G.13 Compare and contrast abstract classes and interfaces. Why would you use an abstract class? Why would you use an interface?
G.14 (Payroll System Modification) Modify the payroll system of Figs. G.16–G.21 to include private instance variable birthDate in class Employee. Use ...
Read now
Unlock full access