This video introduces the concept of a class in Python. The constructor is discussed and attributes are added to the class. The difference between public and private attributes is also briefly considered.
This video takes our class from Task 1a and instantiates an object with it.
This video demonstrates how to add methods to an existing class. Specifically, you will add methods to report on the needs and status of the crop class.
We add an additional method to our crop class to grow the crop based on provided values.
Here we consider how to grow our crop instance automatically over a period of time.
In this section we introduce object-oriented programming through the development of a simple crop simulation.
More stuff from “Object-oriented programming, Part 1”
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.