Пример #1
0
 static void Main(string[] args)
 {
     Nose[] i = new Nose[3];
     i[0] = new Acts();
     i[1] = new Clowns();
     i[2] = new Of76();
     for (int x = 0; x < 3; x++)
     {
         Console.WriteLine(i[x].iMethod() + " " + i[x].GetType().Name);
     }
     Console.ReadKey();
 }
Пример #2
0
        public static void Main(string[] args)
        {
            Nose[] i = new Nose[3];
            i[0] = new Acts();
            i[1] = new Clowns();
            // i[2] = new Picasso();



            for (int x = 0; x < 3; x++)
            {
                Console.WriteLine(i[x].iMethod() + " " + i[x].getClass());
            }
        }