Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 9.2 Writing Constructors for Subclasses

Description

In this lesson, students will write constructors for subclasses. The superclass constructor can be called from the first line of a subclass constructor by using the keyword super and passing appropriate parameters. This lesson corresponds with AP Computer Science A topic 9.2.


Objective

Students will be able to:

  • Write constructors for subclasses