PPT Slide
Strings vis-a-vis Objects
Assignment w/References to Strings/Objects:
Code: Memory:
String str1;
Box box1;
str1
box1
str1 = “Hello World”;
box1 = iLn, iWd, iHt;
Hello World
str1box1
ERROR: must use new “new” and call constructor
Previous slide
Next slide
Back to first slide
View graphic version