home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Extras / ODesign / SetupPSE.exe / data.z / Point.java < prev    next >
Encoding:
Java Source  |  1997-01-24  |  408 b   |  23 lines

  1. package COM.odi.demo.rep;
  2.  
  3. /**
  4.  *      <H3>Copyright (C) Object Design Inc. 1996, 1997</H3>
  5.  *
  6.  * A Point has an x coordinate and a y coordinate.  Note that Point is
  7.  * not, itself, a potentially-persistent class.
  8.  */
  9.  
  10. public class Point {
  11.   int x;
  12.   int y;
  13.  
  14.   Point(int x, int y) {
  15.     this.x = x;
  16.     this.y = y;
  17.   }
  18.  
  19.   void describe() {
  20.     System.out.println("Point with x = " + x + ", y = " + y);
  21.   }
  22. }
  23.