Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Inheritance and Polymorphism

Learning objectives

  • You can create a class hierarchy using inheritance.
  • You can override the functionality of a base class.
  • You understand the difference between concrete and abstract classes.
  • You understand how polymorphism enables different classes to be treated uniformly.