October 2009
Beginner
432 pages
8h 14m
English
WHAT YOU’LL LEARN IN THIS HOUR:
Designing superclasses and subclasses
Forming an inheritance hierarchy
Overriding methods
Java objects are ideally suited for childbearing. When you create an object—a set of attributes and behavior—you have designed something that’s ready to pass these qualities on to offspring. These child objects take on a lot of the same attributes and behavior of their parent. They also can do some things differently than their parent.
This system is called inheritance, and it’s something every superclass (parent) gives to its subclasses (children). Inheritance is one of the most useful aspects of object-oriented programming (OOP), and you learn ...
Read now
Unlock full access