What is virtual class and friend class?
Answer Posted / kirti joshi
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 ? | 53 Yes | 7 No |
Post New Answer View All Answers
What is the advantage of oop over procedural language?
Where is pseudocode used?
#include
Can enum be null?
What is multilevel inheritance in oop?
What is object in oop?
what are the ways in which a constructors can be called?
What is cohesion in oop?
Is oop better than procedural?
What is a null tree?
What is overriding in oop?
What is static in oop?
What is the types of inheritance?
What is the example of polymorphism?
What is object in oop with example?