Tino APCS

Inheritance

Lesson 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.

Lesson Vocab
BASE CLASS

A class used to define a new class.

CHILD CLASS

A class based on another class.

DERIVED CLASS

A class based on another class.

extends

Keyword indicating that the class will be based upon another.

implements

Keyword indicating that the class will use an interface.

interface

A set of rules governing which attributes and behaviors a class must define.

METHOD OVERRIDING

When a child class overwrites a method inherited from a parent class.

PARENT CLASS

A class used to define a new class.

SUBCLASS

A class based on another class.

super

A reference by a child class to the parent class.

SUPERCLASS

A class used to define a new class.