creation 4/17/98; revised: 09/12/99, 07/14/02, 01/18/06, 04/01/07, 07/24/14
This chapter contains another example of designing a class
and using objects of that type.
The class is named Car
,
and is a miles-per-gallon calculator.
What three values are you likely to use in calculating miles per gallon for a car?