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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
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  
 
  Re: Explain polymorphism? What r the types of polymorphism? pls give examples?
Answer
# 1
Polymorphism literally means taking more than one form or we
can say that one mathod many interface.
there is 2 type of polymarphism 1 :- compail  time polimarphism 
2: run time polimarphism:

Eax:- function overloding and opertor over loding
 
Is This Answer Correct ?    1 Yes 0 No
Vikram
 
  Re: Explain polymorphism? What r the types of polymorphism? pls give examples?
Answer
# 2
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);
 
Is This Answer Correct ?    2 Yes 0 No
Vadivel
 
 
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What do you mean by public, private, protected and friendly?  1
write a c++ program to find maximum of two numbers using inline functions.  1
What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required  5
what is the basic concept of inheritance?  3
In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?  1
How is data security provided in Object Oriented languages? ?  3
Can we have a private constructor ? Ness-Technologies8
What is extreme programming?  2
What is the difference between const int *ptr and int const *ptr???  2
What are generic functions and generic classes?  2
what is diff between .net 1.1 and .net 2.0  3
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory?? Honeywell12
What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5 TCS10
How is exception handling carried out in c++?  1
What is a class? TCS17
What is abstraction?  6
write a program for function overloading?  4
What is Iteration Hierarchy? What is what is Object behavioral concept?  1
What do you mean by binding of data and functions?  1
who is the founder of c++?  1
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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