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
What is pure oop?
Why do we use oop?
write a program that takes input in digits and display the result in words from 1 to 1000
What is encapsulation process?
What is overloading in oop?
What are the advantages of polymorphism?
What is overriding in oop?
What is the benefit of oop?
write knight tour problem which is present in datastructure
What is static modifier?
What is super in oop?
Why we use classes in oop?
What is meant by oops concept?
What are the benefits of oop?
write a C++ program for booking using constructor and destructor.