
Warning
This page shows last year’s version. We might still make small changes, but you’re welcome to take a look. We’ll remove this notice once the page is final.
Week 11: Closure#
Syllabus#
Inheritance: parent class (superclass) and child class (subclass)
Method overriding
The
super()functionMethod
__str__()and overloadingstr()andprint()Operator overloading example on
__add__()and__eq__()