|
If a program has a name for an object, does that mean that an object really exists? A good answer might be:No. Just because there is a name for an object does not mean an object exists. | |
Objects and Names for ObjectsA variable that can refer to an object does not always have an object to refer to. For example, in our program the variable str1 refers to an object only after the new operator has created one.
Before the new operator did its work, str1 was a "place holder" that did not actually refer to any object. After the new operator created the object, str1 can be used to refer to the object. | |
QUESTION 8:What object is being referred to in the statement:
Click Here after you have answered the question
|