/** * @author * * Project Assignment */ public class { /******************* Fields *********************/ /******************* Constructor Methods ***********************/ /* Include your own constructor, even though a default constructor */ /* will always be created and called even if you do not define one. */ /* Constructors are used to instantiate (create) new objects of this class */ /* and to perform any initialization needed for the new object. Different */ /* versions of the constructor (overloading) may be coded to allow users to*/ /* supply different arguments when creating a new object. */ /***************************************************************************/ /******************* Accessor Methods ***********************/ /* Accessor methods are used by other code to access (get or retrieve) the */ /* values of the object's data fields. We define instance data fields as */ /* private and use these accessor methods rather than allowing access to */ /* the fields directly in order to protect the data fields (encapsulation).*/ /***************************************************************************/ /******************* Mutator (Transformer) Methods *********************/ /* Mutator methods are used by other code to change the value of the */ /* object's data fields without accessing the fields directly */ /* (encapsulation). We can use these to enforce restrictions on what kinds*/ /* of changes are allowed (for example, do not set a field to a negative */ /* number). Different versions of these may be defined to allow different */ /* parameters to be used (overloading). */ /***************************************************************************/ /******************* Facilitator Methods **********************/ /* These helper methods perform various tasks such as computations. */ /***************************************************************************/ /******************* toString Methods **********************/ /* Provide your own toString method with helpful text displays of the */ /* object's data values rather than using the default toString method */ /* available for your object. */ /***************************************************************************/