IT lexicon Programming Encapsulation

Encapsulation

Programming På svenska → Updated: 2026-05-23

OOP principle: hide internal details behind a simple interface.

A class exposes methods; internal data is private. You can change the implementation without breaking the API. private, public, getters/setters are the language mechanisms.

← Back to the lexicon