Q.
What is polymorphism in oops? gud expanation needed?
Asked by elijah tishbite,
05 Sep '11 04:01 pm
Earn 10 points for answering
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
'morphs' means forms.
Report abuse
Useful
(1)
Not Useful
(0)
Your vote on this answer has already been received