/// <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); }
public static string ProbEats() { Proboscis p = new Proboscis(); return(p.Eats()); }
public static bool DoesProbHaveTail() { Proboscis p = new Proboscis(); return(p.HasTail); }