Example #1
0
 public static void Main(string[] args)
 {
     string result = "";
     INose[] i = new INose[3];
     i[0] = new Acts();
     i[1] = new Clowns();
     i[2] = new Of76();
     for (int x = 0; x < 3; x++)
     {
         result += (i[x].Ear() + " "
                    + i[x].Face) + "\n";
     }
     Console.WriteLine(result);
     Console.ReadKey();
 }
Example #2
0
        public static void Main(string[] args)
        {
            string result = "";

            INose[] i = new INose[3];
            i[0] = new Acts();
            i[1] = new Clowns();
            i[2] = new Of76();
            for (int x = 0; x < 3; x++)
            {
                result += (i[x].Ear() + " "
                           + i[x].Face) + "\n";
            }
            Console.WriteLine(result);
            Console.ReadKey();
        }