Class & Object Concepts
Accessor Methods
Sometimes accessors correspond exactly to the state variables,
but not always.
- Some properties might not have an accessor method at all.
- Some accessors represent a value calculated from state
variables rather than matching one. (For example,
getRadius()
.)
Alyce Brady, Kalamazoo College