What is polymorphism in OOP?
Write code targeting superclass objects, use that code on subclass objects.
There could be differing reuslts depending on the class of the object
Write code targeting superclass objects, use that code on subclass objects.
There could be differing reuslts depending on the class of the object