For adding an Equipment object, create an addEquipment( Equipment equipment ) method that is called on the backpack instance:
backpack.addEquipment( crowbar );
The class Equipment name should...
Type: Posts; User: GregBrannon
For adding an Equipment object, create an addEquipment( Equipment equipment ) method that is called on the backpack instance:
backpack.addEquipment( crowbar );
The class Equipment name should...
Call the addCanteen() method on an instancde of Backpack:
Backpack backpack = new Backpack();
backpack.addCanteen(); // I didn't include the String parameter, because I don't know why you've...
Please post your code properly indented, like the first bit of code above. Having all lines left justified makes your code hard to read.
Adding a Canteen object to your backpack might be as...