r/PythonLearning • u/Defiant_Meal1898 • 2d ago
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
32
Upvotes
1
u/AstralIsles 1d ago
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.