Esempio n. 1
0
 static void Task2()
 {
     Console.WriteLine("Task 2");
     Task2.Rectangle one = new Task2.Rectangle(2, 3);
     Console.WriteLine($"You create a Rectangle: X = {one.X}, Y = {one.Y}");
     one.Draw();
     Task2.Square two = new Task2.Square(3, 5);
     Console.WriteLine($"You create a Square: X = {two.X}, Y = {two.Y}");
     two.Draw();
 }