Skip to content

Glossary: C++ Basics

private and public

Also written: private, public

Access labels in a class. `public:` members can be used by any code, while `private:` members only by the class's own member functions.

Where the book teaches it

Related terms

EncapsulationClass