home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-01-24 | 408 b | 23 lines |
- package COM.odi.demo.rep;
-
- /**
- * <H3>Copyright (C) Object Design Inc. 1996, 1997</H3>
- *
- * A Point has an x coordinate and a y coordinate. Note that Point is
- * not, itself, a potentially-persistent class.
- */
-
- public class Point {
- int x;
- int y;
-
- Point(int x, int y) {
- this.x = x;
- this.y = y;
- }
-
- void describe() {
- System.out.println("Point with x = " + x + ", y = " + y);
- }
- }
-