It says i na textbook:
"A variable of a class type is called an OBJECT."
"The VALUE of a variable of a class type is called an OBJECT."
Well, if we have a class BOX
Objects box1, box2 and box3
and atribute members color and weight,
what is the value of the object box1, box2, and box3???
I supposed, value of the first object would be f.e. color=blue, weight= 100 kg (menaning, BOTH atributes, but in that case, that VALUSE is a little bit ...complicated type?
Please, am I right?
A variable is an object. The value of a variable is the data contained in the object.
With class types, one usually is more interested in the behavior than the "value" of the object.