1段階目

This commit is contained in:
m-shimizu
2026-09-15 16:25:25 +09:00
parent ac9efcc611
commit 5eebc7c766
2 changed files with 27 additions and 7 deletions

View File

@@ -3,5 +3,18 @@ public class Book {
String title;
String author;
int price;
public Book() {
title = "タイトル未設定";
author = "著者未設定";
price = 0;
}
public Book(String title,String author,int price){
this.title = title;
this.author = author;
this.price = price;
}
}