Update Customer.java
This commit is contained in:
parent
adfa9cb485
commit
96671227b4
|
@ -5,7 +5,7 @@ public class Customer {
|
|||
private String name;
|
||||
private String customerAddress;
|
||||
|
||||
Customer(){
|
||||
public Customer(){
|
||||
this.name="";
|
||||
this.customerAddress="";
|
||||
}
|
||||
|
@ -26,15 +26,15 @@ public class Customer {
|
|||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCustomerAddress() {
|
||||
return this.customerAddress;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void setCustomerAddress(String address) {
|
||||
this.customerAddress = this.name + "," + address;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue