This chapter contains another example of designing a class,
and then using objects of that type.
The class is named Car,
and is a simple
miles-per-gallon calculator.
Chapter Topics:
How classes are documented
Writing a class definition
Instance variables
Using instance variables in a method
Constructors
Constructor parameter lists
QUESTION 1:
What three values are you likely to use in calculating miles per gallon for a car?