๐Ÿ’ปap computer science a review

Public 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

The public access modifier is used in object-oriented programming to allow unrestricted visibility of a variable or method. It means that the variable or method can be accessed and modified from anywhere, including outside the class.

"Public Access Modifier" also found in:

Public Access Modifier Definition - AP Computer Science A Key Term | Fiveable