GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 5 of 63    Print  
Explain the Polymorphism principle.
The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism can be explained as "one interface, multiple methods". 


  
Total Answers and Comments: 21 Last Update: October 14, 2007   
  
 Sponsored Links



 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 3   « First    1    2    3    >     Last »  
August 04, 2005 18:17:23   #1  
Paul        

RE: Explain the Polymorphism principle.
Polymorphism 
 
This ability of different objects to respond, each in its own way, to identical messages is called polymorphism. 
Polymorphism results from the fact that every class lives in its own name space. The names assigned within a class definition won't conflict with names assigned anywhere outside it. This is true both of the instance variables in an object's data structure and of the object's methods: 
 
 
Just as the fields of a C structure are in a protected name space, so are an object's instance variables.  
 
Method names are also protected. Unlike the names of C functions, method names aren't global symbols. The name of a method in one class can't conflict with method names in other classes; two very different classes could implement identically named methods.  
 
Method names are part of an object's interface. When a message is sent requesting an object to do something, the message names the method the object should perform. Because different objects can have different methods with the same name, the meaning of a message must be understood relative to the particular object that receives the message. The same message sent to two different objects could invoke two different methods. 
 
The main benefit of polymorphism is that it simplifies the programming interface. It permits conventions to be established that can be reused in class after class. Instead of inventing a new name for each new function you add to a program, the same names can be reused. The programming interface can be described as a set of abstract behaviors, quite apart from the classes that implement them.

 
Is this answer useful? Yes | No
August 16, 2005 05:26:51   #2  
Amulraj        

RE: Explain the Polymorphism principle.
OOPS
 
Is this answer useful? Yes | No
September 27, 2005 06:13:45   #3  
pinak        

RE: Explain the Polymorphism principle.

polymorohism is like to have one form with many use.A singal operator can be use in diffent forms but thire meaning remains same.


 
Is this answer useful? Yes | No
October 20, 2005 02:38:52   #4  
siba narayan patro        

RE: Explain the Polymorphism principle.
Numerous forms of a single object is called polymorphism. Numerous means more than one.
 
Is this answer useful? Yes | No
November 10, 2005 02:10:11   #5  
kiran        

RE: Explain the Polymorphism principle.
prolymorphism is the concept of using single entity in many ways according to the users request in the programing structure,Multiple methods are entertained from single category is the nature of the polymorphism.
 
Is this answer useful? Yes | No
November 18, 2005 04:51:08   #6  
gayatri        

RE: Explain the Polymorphism principle.
polymor.  means when an object perform various function. for example your mobile phone u can connect to internet ,u may communicate  to ur frnds  n may other function u can perform through  one object<ur mobile phone>
 
Is this answer useful? Yes | No
November 21, 2005 00:31:32   #7  
Ashish        

RE: Explain the Polymorphism principle.
The polymorphism is a "Single interface and multiple method". for example : x is a person and he works different so x is a single interface and its works multiple interface
 
Is this answer useful? Yes | No
November 30, 2005 07:42:06   #8  
Anjan        

RE: Explain the Polymorphism principle.

Excellent explanation !!


 
Is this answer useful? Yes | No
December 01, 2005 02:08:39   #9  
Rahul Dhadphale        

RE: Explain the Polymorphism principle.

Ploymorphism is a process where 2 diff. functions with the same name,passing diff. argument list. it meaning is that you can use same function name for diff. porpuse.


 
Is this answer useful? Yes | No
March 06, 2006 05:45:55   #10  
a_renapurkar Member Since: February 2006   Contribution: 10    

Explain the Polymorphism principle.
"one interface, multiple methods".
 
Is this answer useful? Yes | No
  Page 1 of 3   « First    1    2    3    >     Last »  


 
Go To Top


 Sponsored Links



 
Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape