Solved

Case Study 2: 1. Def LiveALittle(self)

Question 2

Multiple Choice

Case Study 2:
1. def liveALittle(self) :
2. self.__breedTick = self.__breedTick + 1
3. ??????
4. self.tryToBreed()
5.
6. self.tryToEat()
7.
8. if self.__starveTick == 10:
9. self.__world.delThing(self)
10. else:
11. ??????
-Refer to the session in the accompanying Case Study 2, which shows the liveALittle method for the Bear class. What belongs on line 3?


A) if self.__breedTick >= 8:
B) if self.__breedTick < 8:
C) if self == "Bear":
D) if self.__currentPosition > 1:

Correct Answer:

verifed

Verified

Related Questions