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
51
Upvotes
View all comments
2
u/tm80401 17d ago
Class is the plans
Object is the house
Instance is the street address, used to reference the house from outside.
Self is used to reference parts of the house from inside.