// Marty Stepp, CSE 142, Autumn 2009 // A short "client" program that uses our new type of Point objects. public class Example { public static void main(String[] args) { // new objects start at x = 0, y = 0 Point p1 = new Point(); // has an int x, y inside it // p1.x = 7; // p1.y = 3; Point p2 = new Point(); // has an int x, y inside it p2.x = 15345; p2.y = -432590; System.out.println("p1 x = " + p1.x + ", y = " + p1.y); System.out.println("p2 x = " + p2.x + ", y = " + p2.y); System.out.println("p1 is " + p1); Student marty = new Student(); marty.name = "Marty Stepp"; marty.gpa = 3.99999997; marty.studentID = 938457; marty.email = "stepp@cs.washington.edu"; } }