June 2017
Beginner
1296 pages
69h 23m
English
[Note: This section may be read after Chapter 4.]
Classes have attributes (data) and operations (behaviors). Class attributes are implemented as fields, and class operations are implemented as methods. In this section, we determine many of the attributes needed in the ATM system. In Section 33.5 we examine how these attributes represent an object’s state. In Section 33.6 we determine class operations.
Consider the attributes of some real-world objects: A person’s attributes include height, weight and whether the person is left-handed, right-handed or ambidextrous. A radio’s attributes include its station, volume and AM or FM settings. A car’s attributes include its speedometer and ...