This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: abstract, there would be no abstract members in the StaffMember class and, except for the abstract declaration in “ abstract public class StaffMember ” it would be possible to instantiate objects of class StaffMember . Further, classes which extend StaffMember would not have to provide their own pay methods, defaulting instead to a pay method with a potentially empty definition. 9.3 Explain how a call to the addMouseListener method represents a polymorphic situation. A call to the addMouseListener method represents a polymorphic situation because the call involves, as a parameter, an object of a class which implements MouseListener , such as DotsListener , or LineListener . Hence, its behavior is determined by the implemented class indicated by the parameter. 9.4 Draw the containment hierarchy for the ViewColors program. Java Software Solutions, 4e Lewis/Lofuts Chapter 9...
View Full Document
This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.
- Spring '08