Property is an attribute

Programming languages#

Property, programming languages, is a special sort of class member, intermediate in functionality between a field (or data member) and a method.

The syntax for reading and writing of properties is like for fields, but the interposition of method calls "under the hood" allows for data validation, active updating (e.g., of GUI elements), or implementation of what may be called "read-only fields".

Generally properties are methods that make controlled changes to attributes or fields.

Some programming languages require the programmer to define a pair of accessor (getter) and mutator (setter) methods instead.

More Information#

There might be more information for this subject on one of the following: