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 does <> mean pseudocode?
What is polymorphism and its types?
What is oops?what is its use in software engineering?
What is object in oop with example?
What is polymorphism what is it for and how is it used?
Is enum a class?
What is stream in oop?
What do you mean by variable?
How is polymorphism achieved?
What is object in oop?
How do you define social class?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is encapsulation with example?
How to hide the base class functionality in Inheritance?
What are functions in oop?