Lesson A11
Next: Single InheritanceLesson Overview: Inheritance, a major component of OOP, is a technique that will allow you to define a very general class and then later define more specialized classes based upon it. You will do this by adding some new capabilities to the existing class definitions or changing the way the existing methods work. Inheritance saves work because the more specialized class inherits all the properties of the general class and you, the programmer, only need to program the new features.
A class used to define a new class.
A class based on another class.
A class based on another class.
Keyword indicating that the class will be based upon another.
Keyword indicating that the class will use an interface.
A set of rules governing which attributes and behaviors a class must define.
When a child class overwrites a method inherited from a parent class.
A class used to define a new class.
A class based on another class.
A reference by a child class to the parent class.
A class used to define a new class.