
/* This class describes an accessory with the following attributes and methods! */

public class Accessory extends Product {

	private int productNbr;
	private String name;
	private int price;
	private String info;

	public Accessory(int productNbr, String name, int price, String info) {
		this.productNbr = productNbr;
		this.name = name;
		this.price = price;
		this.info = info;
	}

	public int getProductNbr() {
		return productNbr;
	}
	public void setProductNbr(int productNbr) {
		this.productNbr = productNbr;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
}

@@ -1,9 +1,8 @@
-%0A
 /* This 
@@ -147,72 +147,49 @@
 Nbr;
-%0A%09private String name;%0A%09private int price;%0A%09private String info;
+ // Used for identifying which product...
 %0A%0A%09p
@@ -227,17 +227,24 @@
  String 
-n
+productN
 ame, int
@@ -266,104 +266,104 @@
 info
+Txt
 ) %7B%0A%09%09
-this.productNbr = productNbr;%0A%09%09this.name = name;%0A%09%09this.price = price;%0A%09%09this.info = info
+%0A%09%09super(productName, infoTxt, price); // Heritage...%0A%09%09%0A%09%09this.productNbr = productNbr
 ;%0A%09%7D
@@ -414,24 +414,25 @@
 ductNbr;%0A%09%7D%0A
+%0A
 %09public void
@@ -502,323 +502,7 @@
 ;%0A%09%7D
-%0A%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%09public void setName(String name) %7B%0A%09%09this.name = name;%0A%09%7D%0A%0A%09public int getPrice() %7B%0A%09%09return price;%0A%09%7D%0A%0A%09public void setPrice(int price) %7B%0A%09%09this.price = price;%0A%09%7D%0A%0A%09public String getInfo() %7B%0A%09%09return info;%0A%09%7D%0A%09public void setInfo(String info) %7B%0A%09%09this.info = info;%0A%09%7D
 %0A%7D%0A

Update Accessory.java