|
This header is for the file which contains the main method or
extends GBApplet.
/**********************************************************
* <<Your Name>>
*
* Period <<#>>
*
* Date Last Modified: <<#/#/## >>
*
* Project: <<name or # >>
*
* Description of the project:
*
* 1-Goal of the program: <<Describe the overall goal in
*
*
one or two sentences.>>
*
* 2-Significant constants: << List all
constants *
* declared and
used in the *
*
program.>>
*
* 3-The user inputs are: <<List all data that the user
*
* must provide
to the program.>>*
* 4-The program computes: <<List the quantities the
*
* program will compute.>>
*
* 5-The program outputs: <<List the items that the
*
*
program displays on the *
*
screen or writes to a file.>>*
**********************************************************/
This header is for classes which do not contain a main method
and are not applet files.
/*******Responsibilities of a
<<Class>> object:*****************
*
*
* A <<ClassObject>>:-Stores <<list what the instance
*
* variables are storing>> *
*
-Can calculate and return <<list what the *
* accessor
methods calculate and
return.>>
*
*
-Can modify itself by <<list what the
*
* mutator
methods can do.>>
*
* A <<ClassObject>> knows how to:
<<LIST ONLY THE ONES YOU *
* HAVE DEFINED>> *
*
-create memory space for a <<Class>> object*
*
-create a deep copy of
itself *
*
-create an instance of a <<Class>> object *
* initialized
with user provided instance *
* variable
values.
*
*
-turn itself into a String object for the *
*
purposes of output.
*
***************************************************************/
In the second header, the "knows how to" items listed mean the
following:
The class has a default constructor.
The class has an initializing constructor.
The class has a copy constructor.
The class has a toString method.
|