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

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)

 
1.

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
Useful
 (1)
Not Useful
 (0)
Your vote on this answer has already been received
2.

Polymorphism is one of the pillars of oops.polymorphism in latin word which describes 'poly' means many
'morphs' means forms.
Answered by aflatoon, 08 Sep '11 09:41 am

 
  
Report abuse
Useful
 (1)
Not Useful
 (0)
Your vote on this answer has already been received

Ask a Question

Get answers from the community

600 characters remaining

Related Answer

Q.
A

Most conventional steam boilers are classed as either fire-tube or watertube types. In the fire-tube type, the water surrounds the steel tubes through..more

Answered by KARTIKAY SHARMA