We will, as a group, create and compile a file from the command-line:
directions are
here,
except that
(i) we'll start git-bash from the Start menu,
and
(ii) that lets us use ls instead of dir.
We'll continue discussing objects (which have fields)
by playing with Trtls.
The new bit is that: whatever fields the Trtl has,
they are changing over time.
Task:
In your
RobotHQ project,
make all three of your classes so that they
(a) use private fields,
(b) public methods,
(b) have Song and Robot provide getters for all fields,
and
(c) provide the setter Song#setIsCopyrighted.
Make sure your solution runs as it did before!
week11, Nov.04
Finish lecture material:
overloading, Scanner, and an overloaded Construtor that reads from a scanner.