This is an archived version of the course and is no longer updated. Please find the latest version of the course on the main webpage.

Why do we need object-oriented programming?

Welcome back!

In this module, we will discuss a completely different paradigm to programming, called object-oriented programming (OOP).

So please watch my video below as I tell you why we need OOP!

Summary:

  • OOP is elegant, readable and intuitive, which makes it easier to maintain and understand your code.
  • In OOP, everything is an object (to a certain extent)
  • Classes are “blueprints” for object instances.
  • Objects have attributes and properties.
  • Objects interact with each other.
  • Objects can be part of another object (composition/aggregation).
  • Inheritance: Objects can be a special type of a more general object.
  • Polymorphism: You can use the same method on different types of objects (e.g. any Character can attack()).