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 ForgetfulCritter(Critter) :
...
def main() :
dopey = ForgetfulCritter()
dopey.addHistory("eat");
print(dopey.getHistory())
print("Expected: [?]")
dopey.move(10)
print(dopey.getHistory())
print("Expected: [?,?]")
main()
```
Implement a subclass of Critter whose addHistory

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!