Stuck? Need help? Ask questions on our forums.
*/

Other Views

corner
*/

CPLUSPLUS FAQ - What Are Access Modifiers

What are Access Modifiers?

Access Modifiers are keywords that determine the accessibility of a type- a class, variable or method. There are three types of access modifiers- Private, Protected and Public.

Private keyword gives accessibility at most to the members of the class and Friend classes and Friend Functions. Protected keyword gives access at most to the derived classes, Friend classes and Friend Functions. Public keyword gives access to everyone.

C++ FAQ Home
corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings