Word
access modifier
Definition
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.
Examples
“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.”
Examples
simple
“The 'private' access modifier hides data from other classes.”
contextual
“When designing the banking software, the developer used a private access modifier for the account balance to prevent unauthorized changes.”
complex
“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.”
Usage
Commonly used in languages like Java, C++, and C#; typical modifiers include 'public', 'private', and 'protected'.
Etymology
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.
Domain
- Exam level
- CambridgeCambridgeCambridge English QualificationsThe exam suite from Cambridge University Press & Assessment, from A1 Movers up to C2 Proficiency. The benchmark names double as CEFR labels.C2 ProficiencyIELTSIELTSInternational English Language Testing SystemThe 0–9 band test co-owned by the British Council, IDP, and Cambridge. Used for university entry, work, and migration.8.5–9.0TOEFL iBTTOEFL iBTTest of English as a Foreign Language, Internet-Based TestETS's academic English test, the standard route for US university admissions. Scored 0–120, with a 1–6 scale since 2026.1–6 scale: 6.0114–120
- Level
- C2 · Proficiency
- Updated
- アルファベット
- 読み方の一覧 →
QR code
englishreference.com/q/access-modifier