2日目 段階1 小澤

This commit is contained in:
2026-09-15 13:18:13 +09:00
parent bbf7ac5628
commit 992bd30434
2 changed files with 24 additions and 7 deletions

View File

@@ -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;
}
}