Homework 8 - Simple Class Implementation + Exceptions
Due: Monday, October 30, 2006

Introduction

This assignment is very similar to the last textbook assignment, however this time we're asking you to handle invalid inputs with exceptions. The new information here is in bold.

This assignment asks you to write and compile a simple, but complete class specification. You should also write a test driver, a main() method, that demonstrates that it functions correctly. the goal here is to reinforce your understanding of the object-oriented approach to software development.

Additionally, you'll notice that the required class makes use of Java's Exception-handling facility. Newness galore! Please think carefully about not only where the exceptional conditions can occur, but also where the Exceptions should be defined, and where they are best handled -- and what that means for the access-specifier of each of the Exception classes. facility.

The Textbook class

Please implement a class specification for a class that models aspects of a textbook might be useful for an on-line ordering system:

Notes