Java xml 圖書管理系統-Book類
阿新 • • 發佈:2019-02-10
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;
}
}