A good answer might be:
Say that the program has just been loaded and is just about to start running. | |
Instantiating the Point ObjectsHere is a picture of the variables just as the program starts running. No objects have been instantiated yet, so the reference variables a, b, and c do not refer to any object. To emphasis this, a slash has been put through the box that represents each variable.
Here is the program again:
This program:
Once each Point object is instantiated, it is the same as any other (except for the values in the data). It does not matter which constructor was used to instantiate it. | |
QUESTION 5:What are the values of x and y in the third point? Click Here after you have answered the question |