Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is pure oop?

1110


Why do we use oop?

1107


write a program that takes input in digits and display the result in words from 1 to 1000

2432


What is encapsulation process?

1054


What is overloading in oop?

1012


What are the advantages of polymorphism?

1033


What is overriding in oop?

1044


What is the benefit of oop?

1058


write knight tour problem which is present in datastructure

2655


What is static modifier?

1229


What is super in oop?

1176


Why we use classes in oop?

1046


What is meant by oops concept?

1044


What are the benefits of oop?

1264


write a C++ program for booking using constructor and destructor.

2546