/* Author: James Tam Version: March 2, 2021 */ public abstract class Car implements Vehicle { public static final int MAX_FEUL = 40; private int fuel; private boolean engineOn; // The no argument constructor written by James Tam public Car() { fuel = MAX_FEUL; engineOn = false; } // The consumeFeul method was written by James Tam public void consumeFeul(int amount) { int temp = fuel - amount; if (temp >= 0) fuel = temp; else System.out.println("Consuming " + amount + " of fuel puts current " + "fuel at " + temp + " units."); } //Students must implement the method start() public String toString() { String s = "Fuel: " + this.fuel + ", " + "Engine on: " + engineOn; return(s); } //Students must write the header definition for the abstract method travelOneUnit() }