Assigning a value to a variable

When we assign a value to a variable are we, in essence, creating an object? Are variables a kind of class?

1 Like

well, yes and no.

You can think of variables as labels

what we assign to the variable can be a class instance/object.

1 Like