Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 9.1 Inheritance

Description

In this lesson, students will learn about superclasses and subclasses. A superclass is a parent class that contains common attributes and behaviors used by subclasses (children). Subclasses can draw upon the existing attributes and behaviors of the superclass without repeating these in the code. This lesson corresponds with AP Computer Science A topic 9.1.


Objective

Students will be able to:

  • Create an inheritance relationship from a subclass to the superclass