english word · 2026-10-16
encapsulation
noun
Meaning
The practice of bundling data and the methods that operate on that data into a single unit, while restricting direct access to some of the object's components. It acts as a protective shield that prevents the data from being accidentally modified by outside code.
Etymology
From the Latin 'capsula', meaning a small box or chest, combined with the prefix 'en-' to denote the act of surrounding or enclosing.
Examples
"We should use proper encapsulation here so the internal state of the user object isn't exposed to the rest of the application."
"By making these variables private, we are enforcing encapsulation and ensuring that the object manages its own data integrity."
A new word every day
Get a beautiful english word in your inbox every morning. Free.
Subscribe →