-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAccount.java
More file actions
39 lines (31 loc) · 889 Bytes
/
Account.java
File metadata and controls
39 lines (31 loc) · 889 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
// 계좌 데이터 모델 (Account ID, 소유자, 잔액 관리)
public class Account {
private String accountId;
private String accountPassword;
private String owner;
private double balance;
public Account(String accountId, String accountPassword, String owner, double balance) {
this.accountId = accountId;
this.accountPassword = accountPassword;
this.owner = owner;
this.balance = balance;
}
public String getAccountId() {
return accountId;
}
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
public double getBalance() {
return balance;
}
public void setBalance(double balance) {
this.balance = balance;
}
public String getAccountPassword() {
return accountPassword;
}
}