hi every one
i am doing this coursework where i have to design two class one is:
Point2D, that models a two-dimensional point.
The second class implement a class Oblong(rectangle) from a given specification and will require the use of the Point2D class. 1. A Oblong specifies an area in two-dimensional (2D) space which is enclosed by the Oblong object's location, (i.e. its top-left corner ( x, y ) in the 2D-space), its width and its height.
i have no problem with point2d, but in oblong(rectangle) there is two methods(setlocation and getLocation) where set location modifies the co-ordinates of a rectangle’s top-left corner and getlocation the position of the rectangle’s top-left corner.
i can seem to come around those two methods, i tried everything but could not solve it.
i appreciate any one giving me help.
thanks :-| :-|