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/Glass_Fly_6463 Jan 29 '26
Classes are basically bundled data (properties) and functions (logic).
Objects are basically class instances meaning copies of a class so example:
obj1 = Object()
makes obj1 equal to the class so you can use it as one.