Java Reference
In-Depth Information
Quitting TextPad
After you create, save, compile, execute, test, and print the Password class,
the program is complete and you can quit TextPad. The following step quits
TextPad and returns control to Windows.
OTHER WAYS
1. Press ALT + F , X
To Quit TextPad
1. Click the Close button on the TextPad title bar.
The TextPad window closes and the Windows desktop is displayed.
Chapter Summary
In this chapter, you learned how to create a reusable Java class that can be used to
create objects for other programs. You learned how to create class and instance
variables and to use the final qualifier. After learning about the Collections
Framework, you learned how to code overloaded constructors for the Password
class and created an ArrayList object. Next, you learned about accessor methods
and mutator methods and created methods to maintain several instance variables.
You also learned about accessor methods for read-only attributes, and you coded
methods to provide attributes from a combination of variables. You learned about
public and private methods and used ArrayList, String, and StringBuffer objects
and their methods. Finally, you learned about testing a reusable class with a pro-
gram that uses a JPassword field for password security.
Search WWH ::




Custom Search