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
The access level refers to the visibility or accessibility of a variable, class, or method in object-oriented programming. It determines which parts of the code can access and manipulate these elements.
Related terms
Public: This access level allows variables, classes, or methods to be accessed from anywhere in the program.
Protected: This access level makes variables, classes, or methods accessible within their own class and any subclasses.