private static void Task2() { RectangleTask2 r = new RectangleTask2(x: 5, y: 3); r.Draw(); SquareTask2 s = new SquareTask2(x: 5, y: 3); s.Draw(); Console.ReadKey(); }
private static void Hw2() { Console.WriteLine("\n----- HomeWork 2 -----"); Console.WriteLine("\n--- Task1 ---"); HW2.RectangleTask1 r = new HW2.RectangleTask1(); r.Draw(); HW2.SquareTask1 s = new HW2.SquareTask1(); s.Draw(); Console.WriteLine(); Console.WriteLine("\n--- Task2 ---"); HW2.RectangleTask2 r2 = new HW2.RectangleTask2(x: 5, y: 3); r2.Draw(); HW2.SquareTask2 s2 = new HW2.SquareTask2(x: 5, y: 3); s2.Draw(); Console.WriteLine(); Console.WriteLine("\n--- Task3 ---"); HW2.FigureTask3 f3 = new HW2.FigureTask3(x: 5, y: 3); f3.Draw(); HW2.RectangleTask3 r3 = new HW2.RectangleTask3(x: 5, y: 3); r3.Draw(); HW2.SquareTask3 s3 = new HW2.SquareTask3(x: 5, y: 3); s3.Draw(); Console.WriteLine(); Console.WriteLine("\n--- Task4 ---"); HW2.RectangleTask4 r4 = new HW2.RectangleTask4(x: 5, y: 3); HW2.SquareTask4 s4 = new HW2.SquareTask4(x: 5, y: 3); r4.DrawAll(r4, s4); }