ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Programming Languages >> C++ >> OOPS
 
 


 

 
 STL interview questions  STL Interview Questions (91)
 OOPS interview questions  OOPS Interview Questions (558)
 C++ General interview questions  C++ General Interview Questions (458)
Question
What is virtual Function.
 Question Submitted By :: OOPS
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
Virtual function is a function that uses keyword "virtual"
with the datatype of the function. When the base class as
well as the derived class contains a function both having
the same name, just to resolve ambiguity and copy of the
same data again and again we use the keyword "virtual"
preeceeding it. It is used to achieve poymorphism.
 
Is This Answer Correct ?    5 Yes 0 No
Poonam
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
When is it necessary to use member-wise initialization list in C++? Adobe 2
WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE   2
What is encapsulation? TCS 15
Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)   4
JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?   3
tell about copy constructor Siemens 3
What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required Wipro 15
what is polymorpsim? what are its types?   8
What is a unary operator?   5
what is the realstic modeling?   1
How compiler selects(internally) required overridden function in inheritance? CSC 2
what is difference between c++ language and java language   5
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com