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 / prashant kalmodiya

PUBLIC: Specifies that those all members are accessible
from any function.

PRIVATE: Specifies that those members are accessible only
from member functions and friends functions of the class.

PROTECTED: Specifies access to class members in the member-
list up to the next access specifier (public or private)

Is This Answer Correct ?    18 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between struct and class in terms of access modifier.

1144


What is the difference between the compiler and the preprocessor?

1044


What is std :: endl?

972


Can non graphic characters be used and processed in C++?

1132


Is swift faster than go?

1040


Will a catch statement catch a derived exception if it is looking for the base class?

957


How a new element can be added or pushed in a stack?

960


When do we run a shell in the unix system?

1014


What is c++ similar to?

1132


What is the difference between the parameter to a template and the parameter to a function?

1057


What is linked list in c++?

1082


What are static variables?

1082


Differentiate between a constructor and a destructor in c++.

964


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

977


What is auto used for in c++?

1009