title: RPG inventory: Adding and Deleting Items
body: <p>So far I have this: </p>
  
  <pre><code>class Inventory {
       private Potion[] potions;
       private Weapon[] weapons;
       private Armor[]  armor;
       private Food[]   food;
       private Ore[] ores;
  
       public int InventorySlots {get;set;}
       public Inventory() {
              InventorySlots = 10;
              BuildInventory();
       }
       public Inventory(int slots) {
              InventorySlots = slots;
              BuildInventory();
       }
       public void BuildInventory() {
              potions = new Potion[InventorySlots];
              weapons = new Weapons[InventorySlots];
              armor = new Armor[InventorySlots];
              food = new Food[InventorySlots];
              ores = new Ore[InventorySlots]
       }
  }
  </code></pre>
  
  <p>Itf, for example, I wanted to add a new weapon to a 10 slot inventory, how would I add it and delete it?</p>