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 advantage of inheritance?
What type of loop is a for loop?
What is meant by multiple inheritance?
What is polymorphism and its types?
What are the data types in oop?
What is object-oriented programming? Webopedia definition
Can we create object of interface?
What does I oop mean?
What do you mean by abstraction?
#include
to find out the minimum of two integer number of two different classes using friend function
What is an advantage of polymorphism?
What is encapsulation process?
What is inheritance and how many types of inheritance?
What is abstraction in oops with example?