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
What is polymorphism and why is it important?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
class type to basic type conversion
What is an advantage of polymorphism?
What is overloading in oops?
What are main features of oop?
What is the problem with multiple inheritance?
What are properties in oop?
What is static modifier?
What does <> mean pseudocode?
State what is encapsulation and friend function?
What is balance factor?
What does it mean when someone says I oop?
What makes a language oop?
What is polymorphism and its types?