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
Can abstract class have normal methods?
How to call a non virtual function in the derived class by using base class pointer
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is new keyword in oops?
What is the oops and benefits of oops programming?
What is polymorphism used for?
What is inheritance in oop?
How do you define social class?
What is the real time example of inheritance?
What are the three main types of variables?
What is variable example?
Advantage and disadvantage of routing in telecom sector
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
• What are the desirable attributes for memory managment?