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                      
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
what is a virtual class?
 Question Submitted By :: Abhijit
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is a virtual class?
Answer
# 1
In multiple inheritance when a class D is derived by two 
base classes B and C and both base class is also inherite 
by same class A then then class D will get duplicate copy 
of uppper most base class A.In this case class A will 
declare as virtual class
 
Is This Answer Correct ?    4 Yes 0 No
Raj
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.  2
Which is the only operator in C++ which can be overloaded but NOT inherited?  3
Does c++ support multilevel and multiple inheritance? Wipro5
what is a ststic variable and stiticfunction briefly explain with exmple and in which case we use HCL1
When is it necessary to use member-wise initialization list in C++?  1
how to find no of instances of an object in .NET? Infosys1
What do you mean by public, private, protected and friendly?  1
In c++ there is only virtual destructors, no constructors. Why?  2
what is object slicing? Wipro4
Which is the parameter that is added to every non-static member function when it is called?  3
the difference between new and malloc Siemens3
What is an object? HCL7
Name an advantage of array over linked list? IBM12
When will a constructor executed?  3
What are generic functions and generic classes?  2
Please tell me the oops concept with detailed answer EEE4
why we call c++ is object oriented lanaguage HCL2
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call? EA-Electronic-Arts2
What is late bound function call and early bound function call? Differentiate.  2
Can we have a private constructor ? Ness-Technologies8
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 
   
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