/** * Demo aut a hodin - vše * * @author Tomáš Pitner * @version 1.00 10.8.2005 */ public class Demo { public static void main(String[] args) { Car myLada = new Car("BKE 20-57"); Clock mySwatch = new Clock(); startAndStop(myLada); startAndStop(mySwatch); } private static void startAndStop(Going g) { g.start(); g.stop(); } }