intermediate

Object-Oriented Programming: Classes, Encapsulation and Polymorphism

Objects bundle data with the behaviour that belongs to it. Learn classes and instances, encapsulation and invariants, inheritance versus composition, polymorphism through a shared interface, and when object orientation helps or gets in the way. Then build a small class hierarchy and a bank account that protects its own rules.

55 min

Object-Oriented Programming: Classes, Encapsulation and Polymorphism

Objects bundle data with the behaviour that belongs to it. Learn classes and instances, encapsulation and invariants, inheritance versus composition, polymorphism through a shared interface, and when object orientation helps or gets in the way. Then build a small class hierarchy and a bank account that protects its own rules.

In this lesson:

  • oop
  • classes
  • encapsulation
  • inheritance
  • polymorphism
  • composition
  • python

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

Official References

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans