public override void DoService(IAnimal animal, int procedureTime) { base.DoService(animal, procedureTime); animal.DecreaseHappiness(3); animal.IncreaseEnergy(10); }
public override void DoService(IAnimal animal, int procedureTime) { if (animal.IsChipped == true) { throw new ArgumentException($"{animal.Name} is already chipped"); } base.DoService(animal, procedureTime); animal.DecreaseHappiness(5); animal.IsChipped = true; }