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

What is a namespace in c++?

2040


What is a pointer with example?

1266


What is exception handling? Does c++ support exception handling?

1037


What do you mean by enumerated data type?

1054


Why we use #include iostream in c++?

1061


What are the stages in the development cycle?

1067


Describe the advantages of operator overloading?

1050


Can union be self referenced?

1163


What are shallow and deep copies?

1119


Explain the isa and hasa class relationships.

1042


What are static and dynamic type checking?

1094


Explain the difference between using macro and inline functions?

1131


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4123


What are the unique features of C++.

1090


Can a function take variable length arguments, if yes, how?

1019