/*****************************************************************/ /* Copyright 2013 Code Strategies */ /* This code may be freely used and distributed in any project. */ /* However, please do not remove this credit if you publish this */ /* code in paper or electronic form, such as on a web site. */ /*****************************************************************/ package com.cakes; public class SmallEngine implements Engine { int horsepower; public SmallEngine() { horsepower = 100; } @Override public int go() { System.out.println("The small engine is running"); return horsepower; } }