@@ -0,0 +1,1562 @@
+package ch11.product_serial;%0A%0Apublic class Product  %0A%7B  %0A   %0A   private String name;%0A   private double price;%0A   private int quantity;%0A%0A   /**%0A      Constructs a product with empty name and 0 price and%0A      quantity.%0A   */%0A   public Product()%0A   %7B  %0A      name = %22%22;%0A      price = 0;%0A      quantity = 0;%0A   %7D%0A   %0A   /**%0A      Constructs a product with the given name, price and %0A      quantity.%0A      @param aName product name%0A      @param aPrice product price%0A      @param aQuantity product quantity%0A   */%0A   public Product(String aName, double aPrice, int aQuantity)%0A   %7B  %0A      name = aName;%0A      price = aPrice;%0A      quantity = aQuantity;%0A   %7D%0A%0A   /**%0A      Returns the product name.%0A      @return the product name%0A   */%0A   public String getName()%0A   %7B  %0A      return name;%0A   %7D%0A   %0A   /**%0A      Returns the product price.%0A      @return the product price%0A   */%0A   public double getPrice()%0A   %7B  %0A      return price;%0A   %7D%0A   %0A   /**%0A      Returns the product quantity.%0A      @return the product quantity%0A   */%0A   public int getQuantity()%0A   %7B  %0A      return quantity;%0A   %7D%0A   %0A   /**%0A      Sets the product price.%0A      @param newPrice the new product price%0A   */%0A   public void setPrice(double newPrice)%0A   %7B  %0A      price = newPrice;%0A   %7D%0A%0A   /**%0A      Sets the product quantity.%0A      @param newQuantity the new product quantity%0A   */%0A   public void setQuantity(int newQuantity)%0A   %7B  %0A      quantity = newQuantity;%0A   %7D%0A   %0A   public String toString() %7B%0A%09   return super.toString()+%22 : %22+ this.name + %22 (%22 +this.price+%22 , %22+this.quantity+%22)%22;%0A   %7D%0A%7D%0A%0A

add product serial task