What is virtual class and friend class?

What is virtual class and friend class?

friend class is the bassically which class used when two or more classes are designed to work together.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 . But in virtual class is whihc class aids in multiple inheritance, it is used for run time polymorphism when object is linked to procedure call at run time.

Date:2001-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher