Java OOP GUIDE / WORK HOUSE CLASS 2 Topics
TASK – PART 1 –
PREPARATION You will need
to have the files from the House Class work to do this problem. Copy your
files into your project (if necessary). TASK –
PART 2 – ARRAY OF HOUSES Do
the following steps: a)
Create a Tester2 class. b)
Inside this class, create a House array called neighbourhood
that contains 25 House objects. c)
Loop over the array to create each one of the 25 objects (by calling a
constructor). d)
After the loop, create a NOOPDraw window. e)
Inside another loop, display the house objects on the screen (using the draw()
method from the House class). |
|