Esempio n. 1
0
 //Nutrition Constructor
 public Nutrition(string name, Type itemType, decimal cost, int stockLevel, int restockLevel, int quantity,
                  accessoryType accessoryType, nutritionType type) :
     base(name, itemType, cost, stockLevel, restockLevel, accessoryType)
 {
     this.quantity = quantity;
     this.type     = type;
 }
Esempio n. 2
0
 //Watch Constructor
 public Watch(string name, Type itemType, decimal cost, int stockLevel, int restockLevel, accessoryType accessoryType, watchType type) :
     base(name, itemType, cost, stockLevel, restockLevel, accessoryType)
 {
     this.type = type;
 }
Esempio n. 3
0
 //Bag Constructor
 public Bag(string name, Type itemType, decimal cost, int stockLevel, int restockLevel, accessoryType accessoryType, int capacity) :
     base(name, itemType, cost, stockLevel, restockLevel, accessoryType)
 {
     this.capacity = capacity;
 }
Esempio n. 4
0
 //Accessory Constructor
 protected Accessory(string name, Type itemType, decimal cost, int stockLevel, int restockLevel, accessoryType type)
     : base(name, itemType, cost, stockLevel, restockLevel)
 {
     this.AccessoryType = type;
 }