Pregunta de entrevista de Fast Enterprises

What is polymorphism?

Respuesta de la entrevista

Anónimo

25 de dic de 2016

Polymorphism is a concept in which objects can behave different in different situations. For example, if we consider an animal as a super class and Dog, Cat as sub classes which extends from animal class, then the methods in the animal class will behave different depending on whether you are calling them from Dog class or Cat class.