4 Comments

Enjoyed this Robot example + the concept of "storing info + actions in the same place".

I start babbling about inheritance when I explain OOP to first timers.

Expand full comment

I very much agree with you.

As a data analyst I rarely have a need for writing OOP code. But I'm very much interested in learning as much as possible about it as it's very useful technique!

Expand full comment

The code in the footnote needs indentation in last line to append a new robot on each pass through the loop.

Expand full comment