
class, constructing objects of a subclass, adding specialization to a subclass,
overriding inherited methods, and calling methods of the superclass. We
discuss the trade-offs of declaring members as protected versus private. We
demonstrate polymorphism with a graphical example, and introduce the
student to interfaces, which are used extensively in Graphical User Inter-
faces. (See Chapter 12.)
Chapter 11: Exceptions and Input/Output Operations
Recognizing that building robust applications requires error handling, we
present exception handling as a tool for validating user input and recover-
ing from errors at run time. We demonstrate handling predefined ...