Declaring Objects
Thus, the code:
Box shoeBox;
does not create an object of class Box.
does create a reference
(or ptr) shoeBox that can point to an
object of class Box.
gives us what amounts to
a ptr to a Box
which is null:
shoeBox
Previous slide
Next slide
Back to first slide
View graphic version