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


Please Help Members By Posting Answers For Below Questions

Which method cannot be overridden?

662


What is difference between data abstraction and encapsulation?

709


Can we create object of interface?

698


Explain the concepts involved in Object Oriented programming.

740


Why do pointers exist?

758






What is and I oop mean?

721


What is destructor example?

687


How do you explain polymorphism?

683


How Do you Code Composition and Aggregation in C++ ?

24419


what is the drawback of classical methods in oops?

3000


Are polymorphisms mutations?

798


How is class defined?

686


What is difference between oop and pop?

717


What is static modifier?

710


What is object in oop with example?

821