โ† 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