private [C++ Reference]
Keywords: keywords,private
Date: 2009-11-20T02:17:10-0800

[[private]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## private

Private data of a class can only be accessed by members of that class, except when friend is used. The private keyword can also be used to inherit a base class privately, which causes all public and protected members of the base class to become private members of the derived class.

Related Topics: class, friend, protected, public

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •