|
Java OOP GUIDE / WORK
DURATION CLASS 2
SOLUTIONS
TASK –
PART 1 – SETUP No solution
required.
|
|||
|
TASK – PART 2 – PRIVATE
METHOD (SIMPLIFY) Here is my
solution:
TASK – PART 3 – TESTING
YOUR SIMPLIFY METHOD My solution
is below. Remember that we do not need
to call simplify ourselves here. It is
automatically being called in the constructors.
The above
outputs:
|