2.3.2.1 The Object’s Data
The object’s data includes all of the information that is specific to an object class or an object instance. For example, within the context of a university application, a typical object might be a teller. The data of the teller could be:
- An ID
- The amount of cash in the teller’s drawer
- The number of transactions the teller has processed during a given interval, such as a day or month
You can encapsulate the object’s data in an efficient way, such as by combining the object’s data in a structure to which you can get access by means of an attribute. Attributes are a conventional way to differentiate the object’s data from its operations.
Parent topic: The Object Interface