๐Ÿ’ปap computer science a review

Access modifier

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

An access modifier is used in programming languages to control the visibility and accessibility of variables, methods, and classes within different parts of code. It determines whether other parts of code can access and modify certain elements.

"Access modifier" also found in: