r/PythonLearning • • Oct 28 '26

I don't understand OOP

So i am a teen learning python, and i have learnt about classes, methods and objects, but i don't understand OOP, like what is it, where do we use it?

Please help mee

36 Upvotes

50 comments sorted by

View all comments

1

u/AstralIsles Oct 29 '26

It works well until you run into the dependency diamond problem. Then things start to get really messy.
In my latest game I had to switch over to the component pattern. Now I have modular scripts I can slap onto any object I want. The downside is every script is an object which means memory overhead and GC preassure.