- Shared horizontal and vertical movement logic replaces repeated code.

Use the moveDistance parameter wherever the animal's MoveDistance is used.
The method call should be the only code in the Pace method.
Pass in the animal and the animal's MoveDistance. Leave the code that moves the animal vertically.
Pass in the animal and the animal's MoveDistance. Leave the code that moves the animal vertically.
Use the moveDistance parameter wherever the animal's MoveDistance is used.
Instead, it should simply use whatever move distance is passed in to it.
Pass in the animal and the animal's MoveDistance divided by two.
All new classes and interfaces should be created in the Animals project.


The class should only have the Move method.
this.MoveBehavior = new PaceBehavior();In the MakePregnant method in the Animal class, set the MoveBehavior to a new NoMoveBehavior.


Click the Change behavior button. The platypus in the cage should start to fly.

In the BuryAndEatBone behavior's eat method, the eater will bury the bone, dig up the bone, then eat the food. Finally, after the eater finishes its food, it will bark in satisfaction.

In the ShowAffectionBehavior's Eat method, the eater should eat the food then show affection after it has finished eating.

The Eat method should just contain the weight gaining code.


Use a ternary operator and the animal's random to set the gender randomly to either male or female.
© 2026 Northcentral Technical College