Using your phone's internet browser
go to:
Click and drag this link to
the Home icon in your browser.

What is polymorphism in oops? gud expanation needed?

Tags: computers & internet, gud expanation
Asked by elijah tishbite, 05 Sep '11 04:01 pm
  Invite a friend  |  
  Save  |  
 Earn 10 points for answering
Answer this question  Earn 10 points for answering    
4000 characters remaining  
Keep me signed inNew User? Sign up

Answers (2)


Object-oriented programming languages support polymorphism, which is characterized by the phrase "one interface, multiple methods." In simple terms, polymorphism is the attribute that allows one interface to control access to a general class of actions. The specific action selected is determined by the exact nature of the situation. A real-world example of polymorphism is a thermostat. No matter what type of furnace your house has (gas, oil, electric, etc.), the thermostat works the same way. In this case, the thermostat (which is the interface) is the same no matter what type of furnace (method) you have. For example, if you want a 70-degree temperature, you set the thermostat to 70 degrees. It doesn't matter what type of furnace actually provides the heat. This same principle can also apply to programming. For example, you might have a program that defines three different types of stacks. One stack is used for integer values, one for character values, and one for floating-point value ...more
Answered by Rajj, 05 Sep '11 04:10 pm

Report abuse
Not Useful
Your vote on this answer has already been received

Ask a Question

Get answers from the community

600 characters remaining