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


Please Help Members By Posting Answers For Below Questions

Can a destructor be called directly?

597


What are functions in oop?

582


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1789


What is encapsulation with real life example?

566


What is the significance of classes in oop?

587






What is interface? When and where is it used?

1663


What is encapsulation selenium?

552


What is difference between data abstraction and encapsulation?

613


What is object and class in oops?

584


What are two types of polymorphism?

607


What are the benefits of polymorphism?

616


What is basic concept of oop?

696


What is overloading in oop?

572


Give two or more real cenario of virtual function and vertual object

1849


Is html an oop?

576