/** * * @author Lynne Grewe * @version 1.0 * @since September 1998, JDK 1.2 * * purpose: This class is used to represent a generic car */ class Car { /** * Engine Size in volume capacity. */ float Engine_Size; /** * Color of Car */ String color; /** * Model of Car */ String model; /** *Returns a new Car initalized to nothing. * @return A new Car object initialized to nothing. */ Car() { color = new String(); model = new String(); Engine_Size = (float)0.0; } /** *Returns a new Car initalized with parameters. * @return A new Car object initialized w/ parameters * @param m is model of car * @param c is color of car * @param e is Engine_Size of car. */ Car(String c, String m, float e) { color = c; model = m; Engine_Size = e; } } /**Extends Car * @author Lynne Grewe * */ class HotRod extends Car{ int fun; }