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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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 virtual class and friend class?
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is virtual class and friend class?
Answer
# 1
frien class are used when two or more classes are designed 
to work together and virtual base class aids in multiple 
inheritance
 
Is This Answer Correct ?    1 Yes 1 No
Guest
 
  Re: What is virtual class and friend class?
Answer
# 2
friend class is used to share private data between 2 or 
more classes the function declared as freind are not called 
using any object it is called like normal .the arguments to 
such functions is normally object of a class.
virtual class is used for run time polymorphism when object 
is linked to procedure call at run time
 
Is This Answer Correct ?    6 Yes 0 No
Kirti Joshi
 
 
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
How is data security provided in Object Oriented languages? ?  3
What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass  4
What are the advantanges of modularity  2
Why do we use virtual functions?  3
Explain the concept of abstracion and encapsulation with one example. What is the difference between them? PCS2
Does c++ support multilevel and multiple inheritance? Wipro5
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?  3
What is encapsulation? TCS8
what is object slicing? Wipro4
What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.  2
What is public, protected, private? Satyam4
Definition of Object Oriented Programming in single line? TCS14
What is command routing in MFC GE1
what is an instance of a class  2
what is virtual function? Infosys11
what is the use of mutable key word HCL2
Difference between new operator and operator new  2
What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile  3
What do you mean by inline function?  1
What is polymorphism ? Explain with examples Ness-Technologies6
 
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