Object-Oriented Programming

Access Modifier

English

Overview

A keyword controlling where a class member can be accessed from.

Details

A keyword such as public, private, or protected that controls a member's visibility, one of the means of achieving encapsulation. Many languages also have their own rules for the default visibility (no modifier at all), sometimes resulting in an intermediate visibility level distinct from the explicit modifiers, like Java's package-private.

More Programming terms