/* File: Test.java - February 2019 */ package l01; /** * Test file for Point and Circle. * * @author Michael Albert * */ public class Test{ public static void main(String[] args) { Point p = new Point(2.0, 1.0); System.out.println(p); Point q = new Point(5.0, 2.0); Circle c = new Circle(p, q); System.out.println(c); q.move(-3.0,0.0); System.out.println(c); System.out.println(q); c.moveHandle(5.0, 2.0); System.out.println(q); // Note the handle of c is the point q so moving the handle moves q. } }