java.lang.ObjectNormalClassTemplate
public class NormalClassTemplate
Lab (or Programming Project) X: Name of Lab or PP
One-sentence description of role or purpose of objects of this
class goes here.
A more detailed description goes here, if necessary.
Created:
[the date], [your name(s)]
With assistance from: [people who helped (including instructor/TAs)]
Modifications:
[the date], [your name(s)], [the reason]
Constructor Summary | |
---|---|
NormalClassTemplate(int initialValue)
Constructs a new object of this class. |
Method Summary | |
---|---|
int |
getAttribute()
Gets the value of one of this object's attributes (replace this description with a one-sentence summary of your own). |
int |
invokeAMethod(int par)
Returns the sum of instVar and par (replace this description with a one-sentence summary of your own). |
void |
modifyObject(int par)
Increments the object's state by the amount passed in as a parameter (replace this description with a one-sentence summary of your own). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NormalClassTemplate(int initialValue)
initialValue
- initial value for the object's stateMethod Detail |
---|
public int getAttribute()
public int invokeAMethod(int par)
par
- a sample parameter for a method
public void modifyObject(int par)
par
- a sample parameter for a method