// Ch2Demo_aliasing

import java.awt.Rectangle; import java.awt.Point; public class Ch2Demo_aliasing { public static void main(String[] args) { Point topLeft = new Point(5, 7); Rectangle box1 = new Rectangle(topLeft); // Rectangle box2 = new Rectangle(box); Rectangle box2 = box1; System.out.println(box); } }