/** This is a driver class Automobiles which is inherited to Engine and Transmission * Class. * http://www.fordvehicles.com/cars/fusion/features/specs/ * * @author Freeman Lo * @version 0.0.1 Build 1 Jan 28, 2014. * */ public class Engine { private String type; public Engine(String type) { this.type = type; } public String getType() { return this.type; } public void start(){ System.out.println("Engine Started:"); } public void stop(){ System.out.println("Engine Stopped:"); } public String toString() { return "Engine [type=" + this.type + "]"; } }