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 is the role of C++ shorthand's?

1319


Which operations are permitted on pointers?

1042


Give an example of run-time polymorphism/virtual functions.

1058


What is wrapper class in c++?

1197


What is the difference between *p++ and (*p)++ ?

1410


Is c++ a software?

1244


What is a constructor in c++ with example?

1183


What are vectors used for in c++?

1142


Explain differences between alloc() and free()?

1207


What are the advantages of using typedef in a program?

1182


How does c++ sort work?

1025


Explain what are the sizes and ranges of the basic c++ data types?

1201


What is null pointer and void pointer and what is their use?

1149


What does ios :: app do in c++?

1092


How do I write a c++ program?

1169