Пример #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);
 }