November 2012
Intermediate to advanced
1008 pages
27h 3m
English
In this chapter
• Classes, Superclasses, and Subclasses
• Object: The Cosmic Superclass
• Object Wrappers and Autoboxing
Chapter 4 introduced you to classes and objects. In this chapter, you will learn about inheritance, another fundamental concept of object-oriented programming. The idea behind inheritance is that you can create new classes that are built on existing classes. When you inherit from an existing class, you reuse (or inherit) its methods, and you can add new methods and fields to adapt your new class to new situations. This technique is essential in Java programming.
This ...
Read now
Unlock full access