package Cartesian; import Cartesian.*; public class C_Rectangle extends C_Shape { C_Point LL; C_Point LR; C_Point UL; C_Point UR; public C_Rectangle (int LeftX, int BottomY, int RightX, int TopY) { LL = new C_Point (LeftX, BottomY); LR = new C_Point (RightX, BottomY); UL = new C_Point (LeftX, TopY); LR = new C_Point (RightX, TopY); } public int X () { return LL.X(); } public int Y () { return LL.X(); } }