r/learnpython • u/Forward-Ride2950 • 18d ago
Trying to understand Class, Object, Instance, and self in Python. Is my understanding correct?
I'm currently learning OOP in Python and wrote down some questions regarding object and instance for following code
=
= ```
1) is ?
:- is
2) is ?
:- is and is
3) ?
:- is in is and
pass
50
Upvotes
View all comments
3
u/the_milkman01 18d ago
they way i always understand it
a class is a a blueprint of how youre object is going to be like ,
an object is created from a class , this example car1 , but you can also have car2 car3 etc
all those objects are instances of the class car