Skip to content

Encapsulation

  • Wrapping data members (properties) and functions (methods) together.

  • A fully encapsulated class has all data members set to private.

  • Bundling data and the methods that operate on it within a single unit.

  • Information hiding / data hiding.