package superlist;

/**
 *
 * @author simonemacri
 */
public class Product {

    public String name;
    public int qty;

    /**
     * Costruttore vuoto.
     */
    public Product() {
    }

    /**
     * Costruttore personalizzato.
     *
     * @param name il nome del prodotto
     */
    public Product(String name) {
        this.name = name;
    }
    public Product(String name, int qty) {
        this.name = name;
        this.qty = qty;
    }

    @Override
    public String toString() {
        return qty+" "+this.name;
    }

}

@@ -72,29 +72,30 @@
 uct %7B%0A%0A    p
-ublic
+rivate
  String name
@@ -101,21 +101,22 @@
 e;%0A    p
-ublic
+rivate
  int qty
@@ -116,16 +116,42 @@
 int qty;
+%0A    private boolean done;
 %0A%0A    /*
@@ -476,24 +476,277 @@
 qty;%0A    %7D%0A%0A
+    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public int getQty() %7B%0A        return qty;%0A    %7D%0A%0A    public void setQty(int qty) %7B%0A        this.qty = qty;%0A    %7D%0A%0A    %0A
     @Overrid

Update Product.java