Files
java-cui-em-oop/em-oop/src/Book.java
2026-09-15 16:25:25 +09:00

21 lines
296 B
Java

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