This is an archived version of the course. Please find the latest version of the course on the main webpage.

Chapter 1: Introduction

Introduction

face Josiah Wang

Welcome to an extended lesson on Object-Oriented Programming (OOP).

I trust that you are all experts at OOP by now. And that you are constantly thinking about how to design your classes better!

In this lesson, I will try to cover some more topics on OOP that I did not cover in the core lessons. These include the concepts of polymorphism and encapsulation. I will also discuss class attributes, class methods and static methods. I will end with a discussion on type hinting and some other convenient ways to create ‘lightweight’ classes.

There are no exercises in this lesson. So all you need to do is just follow along by reading and trying out any example code I provide. Easy peasy!