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 difference between inheritance and polymorphism?
What is the highest level of cohesion?
How does polymorphism work?
What is a null tree?
What is overloading in oops?
What is polymorphism what are the different types of polymorphism?
What is static modifier?
what is the drawback of classical methods in oops?
What is abstraction oop?
What is byval and byref? What are differences between them?
What is encapsulation in oop?
What are main features of oop?
What are the 5 oop principles?
Templates mean
What type of loop is a for loop?