1个回答
展开全部
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | public class Book{ //用java定义一本书,包括书名,作者,出版社,价格就行,谢谢 private String bookName; //书名 private String author; //作者 private String press; //出版社 private Double price; //价格 public String getBookName() { return bookName; } public void setBookName(String bookName) { this .bookName = bookName; } public String getAuthor() { return author; } public void setAuthor(String author) { this .author = author; } public String getPress() { return press; } public void setPress(String press) { this .press = press; } public Double getPrice() { return price; } public void setPrice(Double price) { this .price = price; } } |
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询