Exemplo n.º 1
0
 //public Of76() : base("Of76") { }
 static void Main(string[] args)
 {
     string result = "";
     Nose[] i = new Nose[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";
     }
     MessageBox.Show(result);
 }
Exemplo n.º 2
0
        static void NotMain(string[] args)
        {
            string result = "";

            Nose[] i = new Nose[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";
            }
            MessageBox.Show(result);
        }