예제 #1
0
        static void Main(string[] args)
        {
            Rectangle rectangle = new Rectangle(1, 2);
            Square    square    = new Square(3, 4);

            square.Draw();
            rectangle.Draw();

            Console.ReadKey();
        }
예제 #2
0
 public static void DrawSquare(Square square)
 {
     square.Draw();
 }