package Cartesian; import Cartesian.*; /** The C_Point class provides a point with Cartesian coordinates. * @author John H. Young * @version 1.0.0 * @see Cartesian */ public class C_Point extends C_Shape { int XLoc; int YLoc; /** The constructor receives the X and Y Cartesian coordinates of * the point. * @param X The X coordinate * @param Y The Y coordinate */ public C_Point (int X, int Y) { XLoc = X; YLoc = Y; } /** This method returns the X coordinate of the point. * @return The X coordinate */ public int X () { return XLoc; } /** This method returns the Y coordinate of the point. * @return The Y coordinate */ public int Y () { return YLoc; } }