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 / pramod

If it's about the data accessing, whether public or private
... you can use friend function.This friend function can be
member of 2nd class and friend for the 1st class.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are polymorphisms mutations?

1166


When not to use object oriented programming?

1114


Is enum a class?

1068


What is constructor in oop?

1118


Explain virtual inheritance?

1209


explain sub-type and sub class? atleast u have differ it into 4 points?

2317


Can a destructor be called directly?

1076


What does and I oop and sksksk mean?

1163


Can static class have constructor?

1038


to find out the minimum of two integer number of two different classes using friend function

2146


What is object in oops?

1074


What does sksksk mean in text slang?

2124


Why we use classes in oop?

1046


when to use 'mutable' keyword and when to use 'const cast' in c++

2165


Why do we need polymorphism in c#?

1174