Please enable JavaScript to use CodeHS

CodeHS Glossary


Inheritance General

With inheritance, a subclass (for example, `Dog`) extends a superclass (for example, `Animal`) and automatically gets its non-private members. In Java, the `extends` keyword creates this relationship.