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
How is class defined?
What is the diamond problem in inheritance?
What does sksksk mean in text slang?
What are the two different types of polymorphism?
Can we create object of interface?
What is the important feature of inheritance?
write a program that takes input in digits and display the result in words from 1 to 1000
Please send ford technologies placement paper 2 my mail id
Write a c++ program to display pass and fail for three student using static member function
Why is polymorphism needed?
write a C++ program for booking using constructor and destructor.
What is encapsulation with real life example?
What are the three main types of variables?
What is the difference between a mixin and inheritance?
Explain virtual inheritance?