Esempio n. 1
0
 /// <summary>
 /// Creates an array of objects that represent each class that inherits from Primate
 /// </summary>
 /// <returns>Array of classes that inherit from Primate</returns>
 public static Primate[] CreatePrimates()
 {
     Primate[] primates = new Primate[3];
     primates[0] = new Lemur();
     primates[1] = new Chimpanzee();
     primates[2] = new Proboscis();
     return(primates);
 }
Esempio n. 2
0
        public static string ProbEats()
        {
            Proboscis p = new Proboscis();

            return(p.Eats());
        }
Esempio n. 3
0
        public static bool DoesProbHaveTail()
        {
            Proboscis p = new Proboscis();

            return(p.HasTail);
        }