RAD Studio
ContentsIndex
PreviousUpNext
private

Category 

C++-Specific Keywords 

Syntax  

private: <declarations>

Description 

Access to private class members is restricted to member functions within the class, and to friend classes. 

Class members are private by default. 

Structure (struct) and union members are public by default. You can override the default access specifier for structures, but not for unions. 

Friend declarations can be placed anywhere in the class declaration; friends are not affected by access control specifiers.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!