Answer Posted / lakshmi.t
If a class B is derived from A, we can access the data and
member function of A.So in order to access a class data or
function from another class we have to derive the class.
but this can be done by declaring a class as 'friend' and
can access the another class functions and data.
| Is This Answer Correct ? | 26 Yes | 8 No |
Post New Answer View All Answers
write a C++ program for booking using constructor and destructor.
What is super in oop?
What are the three parts of a simple empty class?
What are functions in oop?
What is abstraction in oops with example?
How to use CMutex, CSemaphore in VC++ MFC
What is an example of genetic polymorphism?
What is pure oop?
What is multilevel inheritance?
Is oop better than procedural?
What is abstraction oop?
What do you mean by Encapsulation?
how to get the oracle certification? send me the answer
Why do we use class?
Give two or more real cenario of virtual function and vertual object