go to home page   go to next page

creation 4/17/98; revised: 09/12/99, 07/14/02, 01/18/06, 04/01/07, 07/24/14

CHAPTER 31—Designing a Class
(Miles per Gallon)

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.

Chapter Topics:


What three values are you likely to use in calculating miles per gallon for a car?