Fast Enterprises interview question

What is polymorphism?

Interview Answer

Anonymous

25 Dec 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.