← All lessons

Lesson 53 of 62 · about 19 minutes

Abstract Classes, Protocols and Duck Typing 📐

Abstract Classes, Protocols and Duck Typing 📐 When several classes should all offer the same methods (every payment method can pay() , every shape has an area() ), you want a way to describe that shared contract. Python gives you three approaches, from…

This lesson is part of Pythonaut Pro. The first two lessons are free, so you can start there and see how it works.

See the free lessons