Predator: A class that simulates a platypus predator
Your predator class is to contain the following: Member variables (all private):
A string for name
An int for efficiency
A bool to indicate whether alive (or not)
Member functions (all public unless specified otherwise):
A hunttemplate function that takes an object that contains an alive variable. A random number from 0 to 99 is generated. If the number is less than the predator's efficiency, the object passed in will have alive set to false. The location of the predator (an int) may be implemented as a member variable or as a separate variable in the world class.
Predator: A class that simulates a platypus predator
Your predator class is to contain the following: Member variables (all private):
Member functions (all public unless specified otherwise):