// LANDSCAPE GARDENING TYPE 1 QUOTE // Frans Coenen // University of Liverpool // 18 April 2013 public class QuoteItemType1 extends QuoteItem { // ------------------- FIELDS ------------------------ /** The length of the type 1 landscape item. */ private double length = 0.0; /** The width of the type1 landscape item. */ private double width = 0.0; // ---------------- CONSTRUCTORS --------------------- /** Five argument constructor. @param name the name for this landscape gardening item. @param ln the length of the type 1 landscape gardening item. @param wd the width of the type 1 landscape gardening item. @param unitMC the unit material cost (£s) for the type 1 landscape gardening item. @param unitIT the unit installation time (minutes)for the type 1 landscape gardening item. */ public QuoteItemType1(String name, double ln, double wd, double unitMC, double unitIT) { super(name,unitMC,unitIT); length = ln; width = wd; } // ---------------- OUTPUT METHODS --------------------- /** To string method. */ public String toString() { String s = "Length and width of the " + itemName + " = " + length + " x " + width + " (m^2)\nUnit cost of the " + itemName + " = £" + unitMaterialCost + " (per m^2)\nUnit installation time for " + itemName + " + " + unitInstallationTime + " (minutes)\n"; return(s); } }