| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package homework.p09_bookmanager;
- /**
- * @author WanJl
- * @version 1.0
- * @title Book
- * @description 图书类
- * @create 2026/7/22
- */
- public class Book {
- private int id;
- private String title;
- private double price;
- public Book(int id, String title, double price) {
- this.id = id;
- this.title = title;
- this.price = price;
- }
- public int getId() {
- return id;
- }
- public void setId(int id) {
- this.id = id;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public double getPrice() {
- return price;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- }
|