private static void Main(string[] args) { Display d1 = new Display(new StringDisplayImpl("Hellow, Japan")); Display d2 = new Display(new StringDisplayImpl("Hello, World.")); CountDisplay d3 = new CountDisplay(new StringDisplayImpl("Hello, しーるちゃん")); d1.Disp(); d2.Disp(); d3.Disp(); d3.MultiDisp(5); Console.WriteLine("課題"); RandomDisplay d4 = new RandomDisplay(new StringDisplayImpl("何回出力されるかな?")); d4.RandomDisp(5); Display d5 = new Display(new FileDisplayImpl("./README.md")); d5.Disp(); IncreaseDisplay d6 = new IncreaseDisplay(new CharDisplayImpl('-', '#', '-')); d6.IncreaseDisp(6); }
static void Main(string[] args) { Display d1 = new Display(new NormalDisplayImpl("Hello,Japan.")); Display d2 = new CountDisplay(new StarDisplayImpl("Hello,World.")); CountDisplay d3 = new CountDisplay(new NormalDisplayImpl("Hello,Universe.")); CountDisplay d4 = new CountDisplay(new StarDisplayImpl("Hello,Universe.")); d1.ExecuteDisplay(); d2.ExecuteDisplay(); d3.MultiDisplay(5); d4.MultiDisplay(3); Console.ReadLine(); }
static void Main(string[] args) { Display d1 = new Display(new StringDisplayImpl("Hello, Japan.")); Display d2 = new CountDisplay(new StringDisplayImpl("Hello, World")); CountDisplay d3 = new CountDisplay(new StringDisplayImpl("Hello, Universe.")); d1.DoDisplay(); d2.DoDisplay(); d3.DoDisplay(); d3.MultiDisplay(5); Display d4 = new Display(new FileDisplayImpl("Sample.txt")); d4.DoDisplay(); }
static void Main(string[] args) { Display d1 = new Display(new StringDisplayImpl("Hello China")); Display d2 = new CountDisplay(new StringDisplayImpl("Hello World.")); CountDisplay d3 = new CountDisplay(new StringDisplayImpl("hello Universe.")); RandomCountDisplay d4 = new RandomCountDisplay(new StringDisplayImpl("hello Random.")); CountDisplay d6 = new CountDisplay(new FileDisplayImpl("let's go.txt")); d1.display(); d2.display(); d3.display(); d3.multiDisplay(5); d4.RandomDisplay(5); d6.multiDisplay(3); }
static void Main(string[] args) { Display d1 = new Display(new StringDisplayImpl("Hello, Japan.")); Display d2 = new Display(new StringDisplayImpl("Hello, World.")); CountDisplay d3 = new CountDisplay(new StringDisplayImpl("Hello, Universe.")); d1.DisplayText(); d2.DisplayText(); d3.DisplayText(); d3.MultiDisplay(5); RandomDisplay d4 = new RandomDisplay(new StringDisplayImpl("Hello, Galaxy.")); d4.RandomDisplayText(10); CountDisplay d5 = new CountDisplay(new DisplayFile("Sample.txt")); d5.DisplayText(); d5.MultiDisplay(3); }