import java.util.Date;
public class Book {
private String bookId;//书籍编号
private String bookName;//书籍名称
private String bookAuthor;//书籍作者
private int bookPrice;//书籍价格
private Date bookYear;//书籍出版年月
public Book(){}
public Book(String bookId, String bookName, String bookAuthor,
int bookPrice, Date bookYear) {
this.bookId = bookId;
this.bookName = bookName;
this.bookAuthor = bookAuthor;
this.bookPrice = bookPrice;
this.bookYear = bookYear;
}
public String getBookId() {
return bookId;
}
public void setBookId(String bookId) {
this.bookId = bookId;
}
public String getBookName() {
return bookName;
}
public void setBookName(String bookName) {
this.bookName = bookName;
}
public String getBookAuthor() {
return bookAuthor;
}
public void setBookAuthor(String bookAuthor) {
this.bookAuthor = bookAuthor;
}
public int getBookPrice() {
return bookPrice;
}
public void setBookPrice(int bookPrice) {
this.bookPrice = bookPrice;
}
public Date getBookYear() {
return bookYear;
}
public void setBookYear(Date bookYear) {
this.bookYear = bookYear;
}
}
Java xml 图书管理系统-Book类
最新推荐文章于 2023-09-02 17:35:33 发布