📄 book.java
字号:
package item;
public class Book {
//变量声明
private String title;
private String author;
private double price;
private String publish;
private String description;
private String ISBN;
//函数定义
public String getTitle(){
return this.title;
}
public String getAuthor(){
return this.author;
}
public double getPrice(){
return this.price;
}
public String getPublish(){
return this.publish;
}
public String getDescription(){
return this.description;
}
public String getISBN(){
return this.ISBN;
}
public void setTitle(String title){
this.title = title;
}
public void setAuthor(String author){
this.author = author;
}
public void setPrice(double price){
this.price = price;
}
public void setPublish(String publish){
this.publish = publish;
}
public void setDescription(String description){
this.description = description;
}
public void setISBN(String ISBN){
this.ISBN= ISBN;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -