@ -46,13 +46,20 @@ public class Item {
return availability;
}
/**
*
* @param newAmount of items
*/
public void updateAvailability(int newAmount) {
availability = newAmount;
public void updatePrice(float price) {
this.price = price;
* @param newPrice of this item.
public void updatePrice(float newPrice) {
this.price = newPrice;
public float getCurrentPrice() {