What is Polymorphism?

1.1K    Asked by DianeCarr in Salesforce , Asked on Jul 1, 2020
Answered by Diane Carr

Polymorphism allows programmers to use one interface for general class of actions and the specific action will be determined by the exact nature of the situation.

Let's take an example of dog analogy, a dog's sense of analogy is a good example of polymorphism. If the dog smells a cat, it will start to bark and run after it. If the dog smell

food then it will salivate ad=and run ti it's bowl. The same sense of smell is at work in both situations but difference is what is being smelled.

In programming terms, it depends on the type of data being operated.



Your Answer

Interviews

Parent Categories