Pls...could any one tell me that whether we can access the
public data memeber of a class from another class with in
the same program.
Awaiting for your response Thanku
Answer Posted / pramod
If it's about the data accessing, whether public or private
... you can use friend function.This friend function can be
member of 2nd class and friend for the 1st class.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Are polymorphisms mutations?
When not to use object oriented programming?
Is enum a class?
What is constructor in oop?
Explain virtual inheritance?
explain sub-type and sub class? atleast u have differ it into 4 points?
Can a destructor be called directly?
What does and I oop and sksksk mean?
Can static class have constructor?
to find out the minimum of two integer number of two different classes using friend function
What is object in oops?
What does sksksk mean in text slang?
Why we use classes in oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
Why do we need polymorphism in c#?