CSCI 1301 Lab 2

Build me a class... or two...

For Lab 2, you'll use Object-Oriented programming principles to build two re-usable classes: the Square class from Exercise P2.14 on page 76 of your text, and the Product class from Exercise P2.12. Build both classes and a test program that tests the functionality of each.

At the top of each file, place the following lines of comments:

// FileName.java
// by Your Name
// CS1301
// Lab #
// Date

Due Thursday, September 8, at the beginning of class. Make sure to save in a folder (if using a USB drive) called cs1301/lab1/, as well as in a folder on your P: drive called P:\web\cs1301\lab1. Programs will be turned in online by the beginning of class.