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
What is the use of oops?
Can main method override?
What is protected in oop?
What is object in oop?
What does enum stand for?
What is oops and why we use oops?
Explain the advantages of inheritance.
What is advantage of inheritance?
what is the drawback of classical methods in oops?
What is polymorphism in oops with example?
What is the types of inheritance?
Why do we use polymorphism?
What are benefits of oop?
What are the important components of cohesion?
How do you explain polymorphism?