第1个回答 推荐于2018-05-13
public class Book {
private String book_id;//教材编号
private String book_grade;//教材所属年级
private String book_name;//教材名字
private Double book_price;//教材价格
public String getBook_id() {
return book_id;
}
public void setBook_id(String book_id) {
this.book_id = book_id;
}
public String getBook_grade() {
return book_grade;
}
public void setBook_grade(String book_grade) {
this.book_grade = book_grade;
}
public String getBook_name() {
return book_name;
}
public void setBook_name(String book_name) {
this.book_name = book_name;
}
public Double getBook_price() {
return book_price;
}
public void setBook_price(Double book_price) {
this.book_price = book_price;
}
public Book(String book_id, String book_grade, String book_name, Double book_price) {
super();
this.book_id = book_id;
this.book_grade = book_grade;
this.book_name = book_name;
this.book_price = book_price;
}
public Book() {
super();
}
@Override
public String toString() {
return "Book [book_id=" + book_id + ", book_grade=" + book_grade + ", book_name=" + book_name
+ ", book_price=" + book_price + "]";
}
}本回答被网友采纳