PPT Slide
What do we conclude from this?
1. all objects are dynamic data.
2. because all objects are dynamic, Java “knows” that, whenever we reference an object, it must “follow the pointer”.
For example:
shoeBox.setLength(35);
shoeBox.setWidth(19);
shoeBox.setHeight(13);
is equivalent to the pseudocode:
shoeBox^.setLength(35)
shoeBox^.setWidth(19)
shoeBox^.setHeight(13)
Objects and References
Previous slide
Next slide
Back to first slide
View graphic version