AI engineering glossary · Python advanced
What is polymorphism?
Polymorphism: The ability to use different kinds of objects through the same interface, with each supplying its own behaviour. Calling one method name on different objects produces behaviour suited to each type.
Polymorphism: an example
for shape in shapes: shape.area() works whether the item is a Circle or Rectangle, each computing its own area.
Related terms
More Python advanced terms
Where you learn it
Polymorphism is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.