Accessor

Pronunciation: /ˈækˌsɛsˈɔɹ/

Accessor (noun)

  1. A function or method that gets information from an object without changing it.
  2. A routine used to read a value from a class field, often for safe access.

Examples

  • An accessor helps retrieve data from an object.
  • The accessor returns the stored value for the object.