Exemplo n.º 1
0
 // Convert this to expression method (hint: use a C# ternary)
 public string Eat(string food) =>
 (Prey.Contains(food)) ? $"{Name} ate the {food}." : $"{Name} is still hungry.";