Search:

Type: Posts; User: GregBrannon

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    1,083

    Re: Trouble adding an object.

    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...
  2. Replies
    6
    Views
    1,083

    Re: Trouble adding an object.

    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...
  3. Replies
    6
    Views
    1,083

    Re: Trouble adding an object.

    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...
Results 1 to 3 of 3