예제 #1
0
        public static void DisplayShape()
        {
            var s = new Shape();
             var r = new Rectangle();

             ShapeShifter(r);
        }
예제 #2
0
 public static void ShapeShifter(Shape s)
 {
     Console.WriteLine(s);
 }