Skip to content

Glossary: C++ Basics

Encapsulation

Hiding a class's data with `private` so only its own functions can change it. That way `Stock` can never hold a count of -4.

Where the book teaches it

Related terms

Classprivate and public