-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCustomer
62 lines (50 loc) · 1.06 KB
/
Customer
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
package assignment2;
public class Customer {
protected int custNumber;
protected String custName;
protected String custAddress;
protected CheckingAccount checkAcct;
protected SavingsAccount savAcct;
protected SavingsAccount loanAcct;
protected SavingsAccount autoLoanAcct;
public Customer()
{
custNumber = 0;
custName = new String();
custAddress = new String();
}
public Customer(int number, String name, String address)
{
custNumber = number;
custName = name;
custAddress = address;
checkAcct = new CheckingAccount(number,this,0);
savAcct = new SavingsAccount(number,this,0);
loanAcct = new SavingsAccount(number,this,0);
autoLoanAcct = new SavingsAccount(number,this,0);
}
public String getName()
{
return custName;
}
public String getAddress()
{
return custAddress;
}
public int getNumber()
{
return custNumber;
}
public void setName(String name)
{
custName = name;
}
public void setAddress(String address)
{
custAddress = address;
}
public void setNumber(int number)
{
custNumber = number;
}
}