public AnimalHierarchy.Animal createAnimal(Random rGen) { AnimalHierarchy.Animal animal = null; switch (rGen.Next(MAX_ANIMALS.AFRICA)) { case 0: animal = new AnimalHierarchy.Elephant(); break; } return animal; }
public AnimalHierarchy.Animal createAnimal(Random rGen) { AnimalHierarchy.Animal animal = null; switch (rGen.Next(MAX_ANIMALS.AFRICA)) { case 0: animal = new AnimalHierarchy.Elephant(); break; } return(animal); }