示例#1
0
 static void Main(string[] args)
 {
     Fruit f;
     f = new Apple();
     f.GrowInArea();
     f = new Pineapple();
     f.GrowInArea();
     Console.ReadKey();
 }