Java Basics
Commentary: Next draft
- The last page is missing, which is a reimplementation of TimeOfDay
using only time in seconds to show the complete independence of
the implementation from the interface. I've delayed on this
because I'm thinking of changing from TimeOfDay to Appointment.
- Some topics should be moved out-of-line, eg, toString, constructor overloading,
this, @Override, ...
- A better example than TimeOfDay might be Appointment, which
would have a hour, minute, and duration in minutes.
A
isOverlap
method would be a good choice then,
as well at a more motivated implementation of Comparable.
- The issues of moving from static to instance methods hasn't been addressed
explicity.
- Add the Hammurabi example, adding a constructor to it.