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
Why multiple inheritance is not possible?
What is debug class?what is trace class? What differences are between them? With examples.
What is the highest level of cohesion?
How long to learn object oriented programming?
Are polymorphisms mutations?
What is oops concept with example?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is class in oop with example?
can inline function declare in private part of class?
What is encapsulation with example?
What is oops in programming?
What causes polymorphism?
What is polymorphism and types?
Whats oop mean?
Why is oop useful?