3
saas
5y

I was watching a YouTube video about c++ and the guy used player{1...n} in a game as an example for objects of a class Player.
That was A-ha for me 😅.

I never got that in grade school when teachers used fruits and animals as examples 😂.

Comments
  • 5
    Apple extends Fruit, Fruit extends Life and implements Eatable. Remember to call apple.eat() every 24 hours and implement garbage collection that kicks in afterwards.
  • 1
    @joas 😂 that's even better
Add Comment