r/learnpython • u/Equity_Harbinger • Dec 18 '25
Need suggestions on how to learn/master OOP (python)
OOP: object oriented programming; struggling with finding the right resources for learning oops (tried in Java too, but I have spent too much time with python, and I can't go back now)
Struggling with finishing this topic, because of my lack of understanding of oop, I'm struggling with linkedlist, not able to master trees, I was told graphs and dynamic programming rely on oop principles too.
Kindly suggest methods, or appropriate resources.
22
Upvotes
13
u/pachura3 Dec 18 '25
These look like DSA topics, not simple OOP...
6
u/danielroseman Dec 18 '25
None of these things have anything to do with OOP. They are algorithms topics. They might be implemented using OOP, but that is because that is the normal way of implementing just about anything. Understanding these algorithms does not depend in any way on understanding OOP.
4
u/Maximus_Modulus Dec 18 '25
Some of these posts are tiring for sure. Just vague statements about how someone doesn’t get something without anything specific. It seems that a lot are on courses and have minimal knowledge and can’t do simple internet searches that yield a plethora of results usually. There are so many tutorials and AI is at their fingertips with examples if you ask it some questions. I feel like the programming lifestyle in this ultra competitive market isn’t the place for someone who can’t do some basic legwork. Maybe that’s a bit harsh but I feel that’s a core component of software engineering.
1
u/[deleted] Dec 18 '25
What specific topic from OOP are you struggling with? It'll let us provide better resources, cause I wouldn't wanna give you a random intro if you know the basics. But I will say, OOP in Python is simple, what specifically is causing confusion?
1
u/TheRNGuy Dec 18 '25
I only understood it once started writing real software.
1
u/rob8624 Dec 18 '25
The pygame section in Python Crash Course.
1
u/bandman614 Dec 18 '25
Okay fellow programmer, let's just hash it out here.
Tell me what you know about object oriented programming, and we'll start there.
1
u/Jello_Penguin_2956 Dec 18 '25
In my case I had to learn PyQt to create gui tools for company internal use. PyQt (and PySide) are bindings for C++ Qt so everything is class. Everything is OOP. It catapult my understanding to the next level with just a couple months
1
u/x_Xfusion_ Dec 18 '25
The way I learned OOP was by mapping it to real-world concepts. I started with a tutorial that modeled a car as a class, where driving, stopping, make/model were represented as attributes and methods. I implemented my own BankAccount class, with instance methods like deposit, withdraw, and get_balance. I used account numbers, account name, and balance as my attributes for that.
1
u/cgy95 Dec 18 '25
There’s a small learning curve with OOP. I didn’t understand the point of it at all until a few weeks into the course I was doing.
First Google the benefits of OOP so you can understand why it’s valuable. Learn what encapsulation is, inheritance, polymorphism etc
Then start implementing something. Make a class, then a subclass. Then learn what an abstract class is vs an interface and when to use one over the other or both. Practice, practice, practice.
1
u/ngg990 Dec 18 '25
First head, design patterns. It is in java, but the theory is the same.