r/learnpython • u/Forward-Ride2950 • 20d 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
Show parent comment
1
u/StrayFeral 20d ago
Important is not to thing is specific implementation. Important is to start abstract. So you start with a car. But the car is a very specific implementation of a vehicle. So I started with a vehicle, declared some other vehicles, like vans and trucks and then declared a car and what cars could exist.