Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 4.14 Class Design and Abstract Classes

Description

In this lesson, students learn about class structure and how we can further enhance that class structure with abstract classes. They will then use this knowledge to implement abstract classes.

Abstract classes are a key concept for polymorphism. In this lesson, students will get the knowledge of how to use abstract classes, but some of the reasons why we implement them will become more apparent in the next lesson.


Objective

Students will be able to:

  • Explain what an abstract class is and why we use them
  • Implement abstract classes and subclasses
  • Explain design considerations for larger programs