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
What is overriding vs overloading?
What is encapsulation process?
What is super in oop?
What is difference between inheritance and polymorphism?
How do you explain polymorphism?
What is coupling in oops?
What are the advantages of polymorphism?
Why do we use encapsulation in oops?
What is the purpose of enum?
What is polymorphism what are the different types of polymorphism?
Is abstract thinking intelligence?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
Can we define a class within the interface?
What is encapsulation example?
Whats is abstraction in oops?