2日目 段階1 小澤
This commit is contained in:
@@ -3,6 +3,18 @@ public class Book {
|
||||
String title;
|
||||
String author;
|
||||
int price;
|
||||
|
||||
public Book() {
|
||||
this.title="タイトル未設定";
|
||||
this.author="著者未設定";
|
||||
this.price=0;
|
||||
}
|
||||
public Book(String title,String author,int price) {
|
||||
this.title=title;
|
||||
this.author=author;
|
||||
this.price=price;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user