-
Notifications
You must be signed in to change notification settings - Fork 0
/
Customer.java
69 lines (60 loc) · 1.51 KB
/
Customer.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import java.util.ArrayList;
import java.util.List;
/**
* Create new account and check the validation
*
* @author (your name here)
* @version (version number or date here)
*/
public class Customer
{
// instance variables - replace the example below with your own
public String name;
public String password;
public String level;
public String address;
public String paymentInfo;
public String email;
public List<Product> products = new ArrayList<Product>();
public Customer()
{
name="";
password="";
level="";
address="";
paymentInfo="";
email="";
}
public Customer(Account account)
{
name=account.verifyid;
}
public Customer(Customer customer)
{
this.name=customer.name;
this.password=customer.password;
this.level=customer.level;
this.address=customer.address;
this.paymentInfo=customer.paymentInfo;
this.email=customer.email;
}
public Customer(String name1, String password1, String level1, String address1, String paymentInfo1, String email1)
{
this.name=name;
this.password=password;
this.level=level;
this.address=address;
this.paymentInfo=paymentInfo;
this.email=email;
}
public boolean modify()
{
// put your code here
return true;
}
public List<Product> search()
{
// put your code here
return this.products;
}
}