-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUser.java
60 lines (50 loc) · 845 Bytes
/
User.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
public class User
{
private String phoneNumber;
private int stamp = 0;
private int coupon = 0;
private int userNumber;
User()
{
}
// 유저 정보 생성자
// 신규회원들을 받을 때 매개변수 있는 생성자 활용
User(String phoneNumber)
{
this.phoneNumber = phoneNumber;
stamp = 0;
coupon = 0;
}
public String getPhoneNumber()
{
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber)
{
this.phoneNumber = phoneNumber;
}
public int getStamp()
{
return stamp;
}
public void setStamp(int stamp)
{
this.stamp = stamp;
}
public int getCoupon()
{
return coupon;
}
public void setCoupon(int coupon)
{
this.coupon = coupon;
}
public int getUserNumber()
{
return userNumber;
}
public void setUserNumber(int userNumber)
{
this.userNumber = userNumber;
}
}