Java OOP GUIDE / WORK POINT CLASS Topics
TASK –
PART 1 – POINT CLASS Create
the class named Point. Here are the
simple specifications for this very basic class: INSTANCE VARIABLES ·
public
double x – The x-coordinate of a point. ·
public
double y – The y-coordinate of a point. CONSTRUCTORS & INSTANCE METHODS ·
None |
TASK – PART 2 – TESTING
THE POINT CLASS Create
another class called PointTester and follow the
following steps:
|