| |
| META TOPICPARENT |
name="CSC121SylF2023" |
Inventory almost done: Help from classes: Fall 2023
Learning Objective(s) |
| |
-
- It needs three field variables (for the name, instock level, and reorder amount
- It should have at least one constructor that is sent all three values
- It could have a second constructor that is sent a string with all three values. This is extra credit
|
|
< < |
-
- It needs three accessors (getName, getAmount, getReorder
|
> > |
-
- It needs three accessors (getName, getAmount, getReorder)
|
| |
-
- It needs three mutators (set instead of get for amount and reorder amount). There is no mutator for the name (since it won't change). There should also be a mutator to add (or remove) inventory. It should be called updateAmount. It should be sent an integer and that should be added to the amount level
- It should have two equals (One that is sent an Item. The other is sent a name). These are testing for the name.
- It should have a compareTo that is sent and item. This compares based on the name
|
| |
Optional improvements should ONLY be worked on once the program is completing working. In addition, the work is to be done on your own with little if any help for lab assistants or the instructor. |
|
> > |
| META TOPICMOVED |
by="cathybareiss" date="1687786734" from="CenterForComputing.CSC121F2-23Lab12" to="CenterForComputing.CSC121F2023Lab12" |
|