static void Main(string[] args) { Rectangle rectangle = new Rectangle(1, 2); Square square = new Square(3, 4); square.Draw(); rectangle.Draw(); Console.ReadKey(); }
public static void DrawSquare(Square square) { square.Draw(); }
static void Main(string[] args) { Rectangle rectangle = new Rectangle(1, 2); Square square = new Square(3, 4); square.Draw(); rectangle.Draw(); Console.ReadKey(); }
public static void DrawSquare(Square square) { square.Draw(); }