/** * A test client */ public class Test { public Test() { } public static void main(String[] args) { Text myText = new TextBold("Mac"); myText.DrawText("=== A test String ==="); myText = new TextBold("Linux"); myText.DrawText("=== A test String ==="); System.out.println("------------------------------------------"); myText = new TextItalic("Mac"); myText.DrawText("=== A test String ==="); myText = new TextItalic("Linux"); myText.DrawText("=== A test String ==="); } }
最近下载更多