Exemplo n.º 1
0
 /// <summary>
 /// The shark hunts another animal
 /// </summary>
 /// <param name="prey">The hunted animal</param>
 public void Hunt(Ihuntable prey)
 {
     Console.WriteLine($"The shark has hunted the {prey}");
 }
Exemplo n.º 2
0
 /// <summary>
 /// The bear hunts another animal
 /// </summary>
 /// <param name="prey">The animal to be hunted</param>
 public void Hunt(Ihuntable prey)
 {
     Console.WriteLine($"The bear hunts the {prey}");
 }