Object Oriented Programming (OOP) Tutorial 5 Special (MagicDunder) Methods (Video 14 min.)

Submitted by marcel.lubbers on
Go back to...
Author(s)
CoreyMS
Description

In this tutorial, you will be learning about special methods.

These are also called magic or dunder methods. These methods allow us to emulate built-in types or implement operator overloading. These can be extremely powerful if used correctly.

We will start by writing a few special methods of our own and then look at how some of them are used in the Standard Library.