access modifier
compound.compound. a keyword in computer programming that controls who can see or use certain parts of your code. It helps keep data safe by hiding it from parts of the program that do not need it.
compound. a keyword used in object-oriented programming to define the visibility and accessibility of classes, methods, and other members. It enforces encapsulation by restricting which external components can interact with specific internal data.
The 'private' access modifier hides data from other classes.
When designing the banking software, the developer used a private access modifier for the account balance to prevent unauthorized changes.
Choosing the correct access modifier is a fundamental aspect of software architecture, as it determines the level of encapsulation and protects the internal state of an object from external interference.
A compound formation of the Middle English access, derived from the Latin accessus, and the noun modifier, from the Latin modifier. The term emerged as a standard descriptor within the development of object-oriented programming languages to categorise keywords that regulate visibility.
Etymology adapted from Wiktionary, available under CC BY-SA 4.0.
Commonly used in languages like Java, C++, and C#; typical modifiers include 'public', 'private', and 'protected'.
Last updated July 22, 2026