package Library.book;
public class Book {
private String name;
private String author;
private int price;
private String type;
private boolean isBorowed; //默认是flase,默认没有被借,所以可以不用初始化
public Book(String name, String author, int price, String type) {
this.name = name;
this.author = author;
this.price = price;
this.type = type;
//默认是flase,默认没有被借,所以可以不用初始化
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public boolean isBorowed() {
return isBorowed;
}
public void setBorowed(boolean borowed) {
isBorowed = borowed;
}
@Override
public String toString() {
return "book{" +
"name='" + name + '\'' +
", author='" + author + '\'' +
", price=" + price +
", type='" + type + '\'' +
", isBorowed=" + isBorowed +
'}';
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
MyLib.rar (48个子文件)
MyLib
src
Library
user
NormalUser.java 1KB
User.java 533B
AdminUser.java 1KB
operation
BorrowOperation.java 1KB
FindOperation.java 1KB
ExitOperation.java 378B
IOperation.java 259B
DisplayOperation.java 467B
ReturnOperation.java 1KB
DelOperation.java 1KB
AddOperation.java 1KB
Main.java 1KB
book
BookList.java 794B
Book.java 2KB
out
production
MyLib
Library
user
User.class 711B
NormalUser.class 2KB
AdminUser.class 2KB
Main.class 1KB
Library.iml 471B
out
production
Library
Library.iml 429B
.idea
.gitignore 184B
misc.xml 360B
encodings.xml 200B
workspace.xml 926B
uiDesigner.xml 9KB
modules.xml 261B
operation
ExitOperation.class 669B
FindOperation.class 1KB
DisplayOperation.class 870B
IOperation.class 163B
DelOperation.class 2KB
ReturnOperation.class 1KB
AddOperation.class 2KB
BorrowOperation.class 1KB
.idea
.gitignore 184B
misc.xml 381B
encodings.xml 200B
workspace.xml 3KB
uiDesigner.xml 9KB
modules.xml 303B
book
Book.class 2KB
BookList.class 1KB
.idea
.gitignore 184B
misc.xml 272B
encodings.xml 200B
workspace.xml 5KB
modules.xml 257B
MyLib.iml 433B
共 48 条
- 1
_Zebra
- 粉丝: 1844
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5