Food.java - public class Food extends Product cfw String...

This preview shows page 1 out of 1 page.

public class Food extends Product { String name = "?"; double damageRate = 0.0; String expirationDate = "08.20.2015"; double revenue = 0.0; //Overriden constructor public Food(String productID, int quantity, double unitPrice, String foodName, double damageRate, String expirationDate) { //Brings information over from mother class super(productID, quantity, unitPrice); name = foodName; this.damageRate = damageRate; this.expirationDate = expirationDate; } //calculates total costs after damage rate

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture