您的位置:首页 > 编程语言 > Java开发

Java xml 图书管理系统-Book类

2017-04-05 10:04 330 查看
返回目录

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