object attributes, attributes of objects" /> Attributes

 

Attributes

Object attributes are accessed using set and get methods. A set method begins with the word set; a get method has no prefix. If an attribute is read-only, there is no set method.

Attributes are initialized to valid states during object construction, and the state of an object is always consistent.