public interface Drawable { void draw(); } public class House implements Drawable { public void draw(){...} }
for (Drawable d : elements) { d.draw();}
public interface Moveable { void move(int seconds); } public class Car implements Drawable, Moveable