| The president was very pleased
with your report and asked me to congratulate you on your start at HTSB.
Today in our meeting we talked about what will be the main
classes.
After thinking things over we agree with your assessment.
You indicated
that the first steps in defining each class is to:
- Name your class; (2 marks)
- Give the desired behaviours of the class (list what it should do - this
should be done without Java code - describe it in English). This
section acts as a summary of the object giving a description of what it
is and what it can do;
e.g. This class will keep track of.... and allow the bank to .... add
..., adjust ..., and find out ....
(3 marks)
- Give at least five important instance variables (attributes) to keep
track of. Make sure that you indicate the type of this item, e.g.
int, String,
etc. and a brief description.
e.g. for the Dog class:
int age // age of dog in months
(5 marks)
- Give the prototypes
(access right, scope, return type, method name, parameters) for at least
five important methods. Make sure that you include constructors,
"get" methods, "set" methods.
* Explain what this method does:
e.g. // the constructor
or // the amount of interest, etc.
* If a method requires parameters, make sure that you indicate why they
are needed and their type.
* DO NOT create the body section of the method, just the "header" as shown below.
(15 marks)

Each class will be done separately.
Make sure that you include comments for each method and each
variable that you use. Clearly state the purpose of the method and
variable in the comments.
One could do this work in Java, but it is a better choice, at this stage, to
use a word processor, or even better, a Google document.
Also (as a bonus) you said that you would develop one other idea
from your short list. (hidden)
MAKE SURE YOU KEEP A COPY OF THIS MATERIAL FOR YOURSELF.
I expect this information to be in my hands by the date indicated on
the outline [click to find
due date].
|