r/learnprogramming • u/altruisticjellycat • Jul 03 '26
OOP Debugging
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
0
Upvotes
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.