Java Reference
In-Depth Information
Quitting TextPad
After you create, save, compile, test, and print the source code for the
PasswordException classes and subclasses, as well as the classes for the
StockListDemo application, the program is complete and you can quit TextPad.
The following step quits TextPad and returns control to Windows.
To Quit TextPad
1. Click the Close button on the TextPad title bar.
The TextPad window closes and the Windows desktop is displayed.
OTHER WAYS
1. Press ALT + F , X
Chapter Summary
In this chapter, you learned about inheritance and the difference between single
and multiple inheritance. You learned how to use inheritance to construct
objects, modeling an is-a relationship between objects, and how that differs from
using aggregation to model a has-a relationship. You explored abstract classes
and how they differ from concrete classes. You learned how to create and use
abstract classes and methods in Java. You also learned about using final methods
to prevent method overriding in subclasses, and about final classes and how they
can be used to prevent inheritance. You learned about extending child classes to
create an inheritance hierarchy. You learned about finding and replacing text and
setting, clearing, and finding bookmarks in TextPad. You learned about interfaces
and how to create an interface and implement the interface in Java. You learned
how to chain, or concatenate, method calls and how to code a callback mecha-
nism using a callback method. Finally, you learned about adapter classes and
anonymous objects.
Search WWH ::




Custom Search