Today we continued chapter 2 in the book. This program has two .java files that need to be included in the project, they are:
|
The Pond class that instantiates an instance of the IceSkater and then calls methods in the objects (instances) of the IceSkater class.
|
Pond.java
|
| And the IceSkater.java that provides the methods that are being called using the instances of the IceSkater that were created in the main of the Pond class. This class has a instance variable weight that is being manipulated using the method changeWeight that is being called in Pond.
|
IceSkater.java
|