Polymorphism is the ability for an object to be treated like it's a many different types of objects.
In this video, we explore what that means in a Python program: the ability for parent and child classes to have methods with the same name and how a program can choose between them based on object type.
We also talk about the isinstance function which can be used to determine if an object is an instance of a particular class and how that can be useful.
This objected-oriented programming tutorial is designed for beginners.
Ещё видео!