r/learnpython
•
u/Current-Vegetable830
•
Jan 13 '26
•
1
I cannot understand Classes and Objects clearly and logically
75
Upvotes
r/learnpython
•
u/Current-Vegetable830
•
Jan 13 '26
•
1
1
u/ferm-ent Jan 13 '26
don't know python specifically but this popped in my feed. if you know variables and functions, then you know objects:
an object is a just a way to group functions and variables together under a name. instead of calling "myFunction()", you call "myObject.myFunction()" or "myObject.myVariable"
a class is just extra steps to make it easy to duplicate whatever object you define.
there are some things besides that, but this is at large the simplified mental model you can keep of an object.