forked from bitcocom/JavaTPC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTPC12.java
More file actions
26 lines (22 loc) · 730 Bytes
/
TPC12.java
File metadata and controls
26 lines (22 loc) · 730 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
import kr.tpc.BookVO;
public class TPC12 {
public static void main(String[] args) {
// 생성자 -> 생성+초기화-> 중복정의
BookVO b1=new BookVO();
//b1.title="오라클";
System.out.print(b1.title+"\t");
System.out.print(b1.price+"\t");
System.out.print(b1.company+"\t");
System.out.println(b1.page);
BookVO b2=new BookVO();
System.out.print(b2.title+"\t");
System.out.print(b2.price+"\t");
System.out.print(b2.company+"\t");
System.out.println(b2.page);
BookVO b3=new BookVO("Python", 18000, "대림", 920);
System.out.print(b3.title+"\t");
System.out.print(b3.price+"\t");
System.out.print(b3.company+"\t");
System.out.println(b3.page);
}
}