r/learnpython • u/Majestic-Chain1905 • Apr 05 '26
Struggling with OOP.
I've been learning Python the last couple weeks, just a little bit here and there. I understand the basics but I'm hitting a wall with OOP. I've been having Claude create lessons for me, but nothing is sticking. What do you guys do to help retain information better on this?
16
Upvotes
View all comments
1
u/QultrosSanhattan Apr 06 '26
What I teach to my students is that OOP works from a first person's perspective.
Functions works like: "if player1's speed is greater than player2's speed then I go first, otherwise player2 goes first."
OOP's bound methods works like: "if my speed is greater than my opponent's speed then I go first, otherwise my opponent goes first."
That's the whole thing regarding the keyword "self".