Quick Index
Overview
Note: the terms class, type, and object type are used interchangeably.
Refer to the example.
Exercise #1
Steps:
- Code up the class for "Ball.java"
- Compile the class
Notes:
- The class may be minimal (i.e. empty code body)
- You do not need to run the class (but you do need to compile it)
Exercise #2
Recall our previous work:
Steps:
- Code up the class for "Rectangle.java"
- Compile the class
Notes:
- The class may be minimal (i.e. empty code body)
- You do not need to run the class (but you do need to compile it)