r/learnpython • • Jan 13 '26 • Bravo 1

I cannot understand Classes and Objects clearly and logically

75 Upvotes

72 comments sorted by

View all comments

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.