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...

What is the difference between public, private, protected
inheritance?

Answer Posted / girish kumar

publc: variable declare in public can be access anywhere in the program i.e. other classes can also use same variable which are declare once.
private:variable declare in private can't be access outside the class in which it is declare .Variable are only access in the same class.

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best book for c++ beginners?

1097


What do the keywords volatile and mean mutable?

1096


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1061


What is an accessor in c++?

1118


What is #include iostream in c++?

1109


What does extern mean in a function declaration in c++?

1272


What is an incomplete type in c++?

1340


What is recursion?

2378


What are c++ storage classes?

1157


What is a wchar_t in c++?

1215


Explain mutable storage class specifier.

1128


Can create new c++ operators?

1066


What c++ is used for?

1149


Is ca high or low level language?

1133


Explain one-definition rule (odr).

1172