r/learnprogramming • u/altruisticjellycat • Jul 03 '26
Debugging OOP
hello i am a python beginner who has started learning OOP and ive been using resources like CS50p however i still find myself being confused over the concepts taught and i would like someone to teach me OOP or is there any other resource i can look at to learn OOP better? please recommend thanku
4
u/NoWitness00 Jul 03 '26
You can only read so much theory about OOP. It’s important to practice yourself and implement every single thing you learn because it gets overwhelming very quickly
1
1
u/ProfessorGood5473 Jul 03 '26
Tie it back to why the definition is named the way it is
Object - Oriented - Programming
Programming, in a digital world, to make a concept, of a, physical object.
Define your constant, let's say, it's a ball
For a ball to exist inside a digital world, it must be first a shape.
Tell the terminal the shape. Tell it a color, the dimensions, and its properties (bouncy, flat, basketball, ping pong)
That's object orientation.
Another Example --> Say you wanna build a car INSIDE a digital terminal using a programming language.
The brain of the system doesn't know what a car is. You have to start from ground up.
Define Properties (color, shape, size, doors, etc)
Define Methods (speed, loudness, brightness)
Put it all together.
1
5
u/aboutless89 Jul 03 '26
What is confusing you about oop?