-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.java
More file actions
40 lines (31 loc) · 822 Bytes
/
Customer.java
File metadata and controls
40 lines (31 loc) · 822 Bytes
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
public class Customer {
private String idNumber;
private long accountNumber;
private String firstName,lastName;
Account account;
public Customer(String i, String f, String l, long an){
idNumber = i;
firstName = f;
lastName = l;
accountNumber = an;
};
public String getIdNumber() {return idNumber;}
public long getAccountNumber() {
return accountNumber;
}
public String getFullName(){
return getFirstName() + " " + getLastName();
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
}