Notice
Recent Posts
Recent Comments
Link
«   2025/03   »
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
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

chapter02 : book 본문

JAVA/chapter09_this

chapter02 : book

GAWON 2023. 5. 26. 18:09
package org.joonzis.ex;

public class Ex02_Book {
	// 필드
	String title, writer;
	int price, salesVolume;
	boolean isBestSeller;
	
	public Ex02_Book() {}
	public Ex02_Book(String title, int price) {
		this(title, "작자미상", price);
	}
	public Ex02_Book(String title, String writer, int price) {
		this.title = title;
		this.writer = writer;
		this.price = price;
	}
	
}

'JAVA > chapter09_this' 카테고리의 다른 글

chapter01 : rect / rectmain  (0) 2023.05.26