What is virtual class and friend class?

Answer Posted / govind

A virtual class is an inner class that can be overridden by
derived classes of the outer class.buti in this virtual
class cant access the privat member data and funtion .

A friend class is can access the privat member data and
function .

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4240


What is overloading and its types?

615


What does it mean when someone says I oop?

584


What do you mean by variable?

576


What is the main feature of oop?

618






Why it is called runtime polymorphism?

575


What is pointer in oop?

535


What does no cap mean?

590


What is an interface in oop?

593


What is debug class?what is trace class? What differences are between them? With examples.

1608


What does enum stand for?

613


What are main features of oop?

632


any one please tell me the purpose of operator overloading

1965


What is this pointer in oop?

555


What are the benefits of interface?

577