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

Can a program run without main function?

1224


Can a program run without main?

1330


Is map ordered c++?

1147


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1610


Why pointer is used in c++?

1231


Can you explicitly call a destructor on a local variable?

1071


How would you use the functions sin(), pow(), sqrt()?

1236


What is heap sort in c++?

1135


What is the difference between prefix and postfix versions of operator++()?

1134


What are dynamic type checking?

1096


What does catch(…) mean?

1170


What is #include cstdlib in c++?

1231


What is the keyword auto for?

1088


How do you establish an is-a relationship?

1216


Write is a binary search tree? Write an algo and tell complexity?

1072