package class2_1_WritingInterfaces; public class Text implements Drawable { private String text; /** * Create a text object to "draw" on the screen. * @param text the text to draw */ public Text(String text) { this.text = text; } /** * Pretend to draw text. */ public void draw() { System.out.println("Draw the text "+text); } }