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 are the differences between public, private, and
protected access?

Answer Posted / bebo

prvate:is accessed by members of that class only.

public:is accessed by members of any class

protected: variables that are visible only
to the class to which they belong, and any subclasses.

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of problems can be solved by a namespace?

1094


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

969


By using c++ with an example describe linked list?

1030


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

1019


When does a name clash occur in c++?

1173


Explain terminate() and unexpected() function?

1100


What are the various compound assignment operators in c++?

982


List the special characteristics of constructor.

1179


Is rust better than c++?

1118


How do you define a class in c++?

1083


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

1182


What is a string example?

1079


How do you find out if a linked-list has an end?

1124


Explain how a pointer to function can be declared in C++?

1063


What is the best c++ book for beginners?

1149