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
 
What is function overloading?,describe it with the example.   5
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile CTS 1
Conversion from a basic type to a class type may be achieved using______________ HCL 5
How to calculate the age from the date of birth by using the program? Accenture 2
The expansion of GNU   3
what is the definition of incapsulation   2
features of OOPS Ness-Technologies 22
what is the difference between <stdio.h>and "stdio.h"?   5
what is the realstic modeling?   1
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?   2
what is mean by design pattern   4
Explain polymorphism? What r the types of polymorphism? pls give examples? HCL 4
 
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