/** * Write a description of class Main here. * * @author (your name) * @version (a version number or a date) */ public class Main { public static void main(String[] args){ Running watches = new Watches(); Running shoes = new Shoes(); Stretchable throwses = new Throwses(); watches.run(1000); shoes.run(10); System.out.println(watches); System.out.println(shoes); ((Stretchable)shoes).putOn(); shoes.run(15); throwses.putOn(); System.out.println(shoes); System.out.println(throwses); ((Stretchable)shoes).putOff(); throwses.putOff(); System.out.println(shoes); System.out.println(throwses); } }