top of page
CRITTERS BRAWL
This was an assignment from Paul Cao's CSE 8B course in the fall of 2018. For this assignment, we were given an interface called Trait and an abstract class called Critter that determined the methods that our Critters could use. We were asked to make three different trait subclasses -- Aggressive, Sensible, and Peaceful -- that determined how often a critter would attack with a ROAR, a POUNCE, or a SCRATCH. We had to use inheritance and polymorphism to make our Critters attack and intra-critter-interaction behavior unique while allowing them to gather data from the world around them.
​
​
SKILLS LEARNED...
Inheritance
Polymorphism
Interfaces
VIEW CODE HERE...
bottom of page