subtypepolymorphism
nounSubtype polymorphism is when different kinds of things can all be used in the same way because they share a common type.
Thanks to subtype polymorphism, the program can treat a cat and a dog both as animals when it feeds them.
OTHER MEANINGS
2. In type theory, the property that a value of a subtype can be used wherever a value of its supertype is expected.
The function accepts any Shape, and subtype polymorphism lets it receive a Circle or a Square.
3. A form of polymorphism resolved at runtime through method dispatch on an object's actual class.
Calling speak() on an Animal reference runs the Dog version because of subtype polymorphism.
4. The ability of a collection to hold objects of many derived classes while exposing only the base class interface.
The list of Employees uses subtype polymorphism to store managers and engineers together.