In this video we construct a field class that can contain crops and animals.
This video demonstrates how to add functions to add and remove both crops and animals from our field.
This video demonstrates how to add functions to test the functionality of our class
In this video we add methods to report the needs and contents of our field.
This video demonstrates how to add a grow method to your field class that will grow all crops and animals present.
In this section we develop our simulation further by adding a field class which can contain both crops and animals.
More stuff from “Object-oriented programming, Part 2”
Heads up: the shoutbox will be retiring soon. It’s tired of working, and can’t wait to relax. You can still send a message to the channel owner, though!
Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels.