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

public class Accessory extends Product {
        
        private int productNbr;
        private int price;
        private String name;
        private String info;

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

        public int getProductNbr() {
                return productNbr;
        }
        public void setProductNbr(int productNbr) {
                this.productNbr = productNbr;
        }
        public int getPrice() {
                return price;
        }
        public void setPrice(int price) {
                this.price = price;
        }
        public String getName() {
                return name;
        }
        public void setName(String name) {
                this.name = name;
        }
        public String getInfo() {
                return info;
        }
        public void setInfo(String info) {
                this.info = info;
        }
}

@@ -123,25 +123,10 @@
 t %7B%0A
-        %0A        
+%0A%09
 priv
@@ -149,72 +149,51 @@
 br;%0A
-        private int price;%0A        private String name;%0A        
+%09private String name;%0A%09private int price;%0A%09
 priv
@@ -210,24 +210,17 @@
  info;%0A%0A
-        
+%09
 public A
@@ -247,19 +247,8 @@
 Nbr,
- int price,
  Str
@@ -256,16 +256,27 @@
 ng name,
+ int price,
  String 
@@ -283,32 +283,18 @@
 info) %7B%0A
-                
+%09%09
 this.pro
@@ -319,131 +319,75 @@
 br;%0A
-                this.price = price;%0A                this.name = name;%0A                this.info = info;%0A        %7D%0A%0A        
+%09%09this.name = name;%0A%09%09this.price = price;%0A%09%09this.info = info;%0A%09%7D%0A%0A%09
 publ
@@ -411,32 +411,18 @@
 Nbr() %7B%0A
-                
+%09%09
 return p
@@ -432,34 +432,20 @@
 uctNbr;%0A
-        %7D%0A        
+%09%7D%0A%09
 public v
@@ -480,32 +480,18 @@
 tNbr) %7B%0A
-                
+%09%09
 this.pro
@@ -516,419 +516,269 @@
 br;%0A
-        %7D%0A        
+%09%7D%0A%0A%09
 public 
+Str
 in
-t
+g
  get
-Pric
+Nam
 e() %7B%0A
-                return price;%0A        %7D%0A        public void setPrice(int price) %7B%0A                this.price = price;%0A        %7D%0A        
+%09%09return name;%0A%09%7D%0A%09public void setName(String name) %7B%0A%09%09this.name = name;%0A%09%7D%0A%0A%09
 public 
-Str
 in
-g
+t
  get
-Nam
+Pric
 e() %7B%0A
-                return name;%0A        %7D%0A        public void setName(String name) %7B%0A                this.name = name;%0A        %7D%0A        public String getInfo() %7B%0A                return info;%0A        %7D%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%09
 publ
@@ -812,24 +812,10 @@
 ) %7B%0A
-                
+%09%09
 this
@@ -832,16 +832,9 @@
 fo;%0A
-        
+%09
 %7D%0A%7D%0A

Update Accessory.java