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 / alka choubey

public:class members are access from the outside the class.
private:class members are access only within the class.
protected:class members can access inside the same package.

Is This Answer Correct ?    29 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why #include is used?

1068


Which c++ operator cannot overload?

1015


Out of fgets() and gets() which function is safe to use?

1131


What language does google use?

1172


What is the use of typedef?

1100


Do vectors start at 0?

990


What is c++ code?

1125


Can we use pointers in c++?

1050


What are the advantage of using register variables?

1172


How one would use switch in a program?

1075


State the difference between delete and delete[].

1107


What is the limitation of cin while taking input for character array?

2079


Explain rethrowing exceptions with an example?

1024


Which software is best for c++ programming?

1050


Can user-defined object be declared as static data member of another class?

1023