Question: Implement a subclass of Critter whose addHistory method behaves as described. Do not forget to include the constructor in the new class. ` ` `
Implement a subclass of Critter whose addHistory method behaves as described. Do not forget to include the constructor in the new class.
Tester.py
from critter import Critter
##
# A ForgetfulCritter can't remember it's history.
#
class ForgetfulCritterCritter :
def main :
dopey ForgetfulCritter
dopey.addHistoryeat;
printdopeygetHistory
printExpected:
dopey.move
printdopeygetHistory
printExpected:
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
