Exemplo n.º 1
0
 public override void Eat(Herbivor h)
 {
     Console.WriteLine(this.GetType().Name + " eats " + h.GetType().Name);
 }
Exemplo n.º 2
0
 public AnimalWorld(ContinentFactory factory)
 {
     _carnivore = factory.CreateCarnivore();
     _herbivor  = factory.CreateHerbivore();
 }
Exemplo n.º 3
0
 public AnimalWorld(ContinentFactory factory)
 {
     _carnivore = factory.CreateCarnivore();
     _herbivor = factory.CreateHerbivore();
 }
Exemplo n.º 4
0
 public override void Eat(Herbivor h)
 {
     Console.WriteLine(this.GetType().Name + " eats " + h.GetType().Name);
 }
Exemplo n.º 5
0
 public abstract void Eat(Herbivor h);
Exemplo n.º 6
0
 public abstract void Eat(Herbivor h);