So, objects are like variables? They have an adress? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

So, objects are like variables? They have an adress?

10th Jul 2016, 6:41 PM
Prado
Prado - avatar
1 Answer
+ 3
Objects are reference variables. The difference between them and the variables like ints and doubles is that ints and doubles are primitive data types where the values are stored in them while object variables hold memory address values.
10th Jul 2016, 7:50 PM
JoeyCentral
JoeyCentral - avatar