OOP foundations

Inheritance

A subclass IS-A superclass, it inherits the parent’s fields and methods for free, and may add to or override them. An animated lesson where the diagram draws itself as the design grows.

  • Lesson 4 of 8
  • Animated diagrams

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

8 lessons, each with diagrams that draw themselves.

What you will learn

  • The is-a relationship
  • Override to specialise
  • Single vs multiple inheritance

More low-level design

Watch Inheritance take shape

Sign in and the lesson opens with its diagram ready to play, and the rest of OOP foundations beside it.

DSA comes with the all labs plan and every ChaiCode batch.