Domanda di colloquio di Fast Enterprises

What is polymorphism?

Risposta di colloquio

Anonimo

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