/* Point2Testbed.java */ /* Exercises the constructors added in Point2. The first line of main() creates three Point2 instances, in each case doing "new" with a different constructor. Then we print the results. */ public class Point2Testbed { public static void main(String[] argv) { Point2 pt1 = new Point2(), pt2 = new Point2(100), pt3 = new Point2(40, 80); System.out.println("pt1:"); pt1.print(); System.out.println("pt2:"); pt2.print(); System.out.println("pt3:"); pt3.print(); } }