If we have another object reference Rectangle rect2 = rect1; both rect1 and rect2 will point to the same rectangle object. No new rectangle object is created. This is important to understand because without the keyword new, no new object is created, and the reference only points to an existing object.
If we have another object reference Rectangle rect2 = rect1; both rect1 and rect2 will point to the same rectangle object. No new rectangle object is created. This is important to understand because without the keyword new, no new object is created, and the reference only points to an existing object.