Objects, Classes, and Interfaces The Life Cycle of an Object Creating Objects Using Objects Cleaning Up Unused Objects Creating Classes The Class Declaration The Class Body Declaring Member Variables Implementing Methods The Method Declaration Passing Information into a Method The Method Body Instance and Class Members Controlling Access to Members of a Class Life Cycle Methods Constructors Writing a finalize() Method Subclasses, Superclasses, and Inheritance Creating Subclasses Overriding Methods Writing Final Classes and Methods Writing Abstract Classes and Methods The Object Class Creating and Using Interfaces What Are Interfaces? Defining an Interface Implementing an Interface Using an Interface as a Type Creating and Using Packages Roll Your Own Packages Using the Classes and Interfaces from a Package The Java Packages