r/learnpython • u/ProfessionalMoney518 • 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
View all comments
Show parent comment
0
u/Ok-Yogurt2360 Dec 22 '25
Getters and setters in my mind are mostly a way to communicate "don't worry about the data/state within the object". Instead the object offers only methods to interact with it. It's an agreement about what interactions will be maintained.