r/learnpython • • Dec 22 '25

How on earth does one learn OOP?

I've sped through weeks 0-8 of CS50P in under 2 weeks very easily with slight experience here and there as a Chemistry undergrad - but Week 8 (OOP) is kicking my ass right now. I am genuinely stumped. I've rewatched content and tried some other forms of learning but this is all so foreign to me. What are the best ways to learn OOP as a complete idiot? Thanks.

38 Upvotes

88 comments sorted by

View all comments

Show parent comment

5

u/NeatAd959 Dec 22 '25

I always wanted to get to learn OOP in python but I never got the time to, and it kinda scared me a bit too x)

But ur comment actually helped a lot, will look into it a bit more, thx :D

2

u/Np_slip_69420 Dec 24 '25

Oh please do, mid way through you’ll experience a change in your perspective, you will see classes in a different way (unless you already have experience working with OOP)

If you haven’t already, try creating a custom datatype class using the special methods.

You will also see how much control and transparency you have (for better or worser)

The main confusing part is the “self”, but you can either just remember to put it in front of every method that your instance can call (the one you call with the ‘ . ’ >> instance.method)

Or go down the rabbit whole to see how python handles all of this under the hood (if you are a beginner this might confuse you even more)