CS1150 (Fall 2012, Section 4): Programming Assignment 11



  1. Extend the Car class in two new classes representing cars of your choice (if you're stumped, use PTCruiser and CrownVictoria). These new classes should:
  2. Add a toString() method to every class. Each car's toString method should return a string containing the type of car, its mileage, and its fuel tank level.
  3. Modify the main method from PA10 to allow the creation of specific types of cars, add them to your fleet, drive them around, fill them up with gas, and print them out (causing their toString methods to be invoked). Use helper methods if/when appropriate.


Submit as per the syllabus.