/* This class describes a customer with the following attributes and methods! The customer class
 * is abstract as the customer needs to be either a company customer or a private customer. All
 * variables and methods which define the customer and are inherited! */

public abstract class Customer {

	private String firstName;
	private String lastName;
	private String customerNbr; // Identification variable!
	private String adress;
	private String city;
	private String areaCode;
	private String phoneNbr;
	private String mailAdress;
	private int discountLevel; // What level of discount the customer has (10%, 20% ...)!
	private Order previousOrder; // The previous order if there is one!

	public Customer(String firstName, String lastName, String customerNbr,
			String adress, String city, String areaCode, String phoneNbr,
			String mailAdress, int discountLevel, Order previousOrder) {

		this.firstName = firstName;
		this.lastName = lastName;
		this.customerNbr = customerNbr;
		this.adress = adress;
		this.city = city;
		this.areaCode = areaCode;
		this.phoneNbr = phoneNbr;
		this.mailAdress = mailAdress;
		this.discountLevel = discountLevel;
		this.previousOrder = previousOrder;
	}
	
	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getCustomerNbr() {
		return customerNbr;
	}

	public void setCustomerNbr(String customerNbr) {
		this.customerNbr = customerNbr;
	}

	public String getAdress() {
		return adress;
	}

	public void setAdress(String adress) {
		this.adress = adress;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getPhoneNbr() {
		return phoneNbr;
	}

	public void setPhoneNbr(String phoneNbr) {
		this.phoneNbr = phoneNbr;
	}

	public String getMailAdress() {
		return mailAdress;
	}

	public void setMailAdress(String mailAdress) {
		this.mailAdress = mailAdress;
	}

	public int getDiscountLevel() {
		return discountLevel;
	}

	public void setDiscountLevel(int discountLevel) {
		this.discountLevel = discountLevel;
	}

	public Order getPreviousOrder(Order previousOrder) {
		return previousOrder;
	}

	public void setPreviousOrder(Order previousOrder) {
		this.previousOrder = previousOrder;
	}
}

@@ -260,16 +260,45 @@
 ed! */%0A%0A
+import java.util.ArrayList;%0A%0A
 public a
@@ -655,21 +655,32 @@
 private 
+ArrayList%3C
 Order
+%3E
  previou
@@ -685,16 +685,17 @@
 ousOrder
+s
 ; // The
@@ -713,24 +713,9 @@
 rder
- if there is one
+s
 !%0A%0A%09
@@ -893,29 +893,8 @@
 evel
-, Order previousOrder
 ) %7B%0A
@@ -1176,32 +1176,42 @@
 ousOrder
+s
  = 
-previous
+new ArrayList%3C
 Order
+%3E()
 ;%0A%09%7D%0A%09%0A%09
@@ -2415,98 +2415,16 @@
 lic 
-Order getPreviousOrder(Order previousOrder) %7B%0A%09%09return previousOrder;%0A%09%7D%0A%0A%09public void set
+void add
 Prev
@@ -2439,25 +2439,17 @@
 r(Order 
-previousO
+o
 rder) %7B%0A
@@ -2450,21 +2450,16 @@
 er) %7B%0A%09%09
-this.
 previous
@@ -2467,24 +2467,20 @@
 rder
- = previousO
+s.add(o
 rder
+)
 ;%0A%09%7D

Update Customer.java