Revisit Your Drawing
Let’s take another look at this little draft that I did earlier and just like figure out where we are at. Basically, the
Animal class, we implemented
.talk() already, so that’s great.
.move() is what we’re working on now.
We’re moving on to this other side of the draft where it’s about farm locations. Now the task talked about making a
Field and a
Barn, and I was thinking that this is a chance to do another type of inheritance with
FarmLocation and then implement a couple of instance methods on this:
.exit(), and keep a space for animals to go, and also define how big the spaces could be.
Become a Member to join the conversation.