Figure 6-1 depicts this situation.
an object. Second, the declaration creates an actual, physical copy of the object.
PART I
C h a p t e r 6 :
I n t r o d u c i n g C l a s s e s a n d O b j e c t s
115
PART IPART I
This is done by using the
new
operator. Finally, it assigns to
house
a reference to that object.
Thus, after the line executes,
house
refers to an object of type
Do'stlaringiz bilan baham: