예제 #1
0
 public void print()
 {
     if (arr[0] is Aviation)
     {
         for (int i = 0; i < arr.Length; i++)
         {
             Aviation x = arr[i] as Aviation;
             x.GetName();
         }
     }
 }
예제 #2
0
 public static void IamPrinting(Aviation obj)
 {
     Console.WriteLine("\nТип:" + obj.GetType());
     obj.Display();
     Console.WriteLine();
 }