forked from bitcocom/JavaTPC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTPC15.java
More file actions
29 lines (21 loc) · 698 Bytes
/
TPC15.java
File metadata and controls
29 lines (21 loc) · 698 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
import kr.tpc.MemberVO;
public class TPC15 {
public static void main(String[] args) {
MemberVO m=new MemberVO("È«±æµ¿", 40, "010-1111-1111","¼¿ï");
// setter method - X
System.out.println(m.getName());
System.out.println(m.getAge());
System.out.println(m.toString());
MemberVO m1=new MemberVO();
m1.setName("³ª±æµ¿");
m1.setAge(34);
m1.setTel("010-2222-2222");
m1.setAddr("±¤ÁÖ");
System.out.print(m1.getName()+"\t");
System.out.print(m1.getAge()+"\t");
System.out.print(m1.getTel()+"\t");
System.out.println(m1.getAddr());
//System.out.println(m1.toString());
System.out.println(m1);
}
}