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 / saurabh
You can access by just creating the object of first class
and then using this object to access public member in
second class.
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Which method cannot be overridden?
What is difference between data abstraction and encapsulation?
Can we create object of interface?
Explain the concepts involved in Object Oriented programming.
Why do pointers exist?
What is and I oop mean?
What is destructor example?
How do you explain polymorphism?
How Do you Code Composition and Aggregation in C++ ?
what is the drawback of classical methods in oops?
Are polymorphisms mutations?
How is class defined?
What is difference between oop and pop?
What is static modifier?
What is object in oop with example?