Lesson 10 - Inheritence
When you create a new class, you don't have to start completely from scratch. You can use an existing class and simply add new features. This is called inheritance. You will learn how to do this in this lesson.
Lesson 10 sections are as follows:
| 10.1 Organization |
Learn about the different methods of program organization and how inheritance fits. |
| 10.2 Subclasses |
Learn to create a simple subclass and to call the methods inherited from its superclass. |
| 10.3 Inherited Methods |
Learn how to use the inherited methods defined in the Component class. |
| 10.4 New Methods |
Learn to add new capabilities to your subclass by writing new methods. |
| 10.5 Constructors |
Learn to write subclass constructors and take advanage of existing constructors. |
| 10.6 Overriding |
Learn how to modify the behavior of a subclass by overriding inherited methods.
|
Continue with section 10.1 Organization
|