ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories >> Software >> Programming-Languages >> C++ >> OOPS
 
 
 
Question
Explain polymorphism? What r the types of polymorphism? 
pls give examples?
 Question Submitted By :: Aynaval
I also faced this Question!!     Rank Answer Posted By  
 
Answer
Right answer is,

Polymorphrism means the "Many forms", is feature that 
allows one interface to be used for a general class of 
actions.  The specifc action is determined by the nature of 
the situation.

Two types of polymorphrism, 1. Compile time 
(Operator/Functional overloading) [Language 'C' supported 
polymorphrism]. 2. Run time (Virtual function).

Example:
    //function prototype
    int Addition(int iOperand1, int iOperand2);
    float Addition(float fOperand1, float fOperand2);
    float Addition(int iOperand1, float fOperand2);
 
3
Vadivel
 
View All Answers
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com