⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 book.java

📁 功能简单的网上电子书店 javabean
💻 JAVA
字号:
package item;

public class Book {
	//变量声明
	private String title;
	private String author;
	private double price;
	private String publish;
	private String description;
	private String ISBN;
	private int count;
	
	//函数定义
	public Book(){
		title = null;
		author = null;
		price = 0 ;
		publish = null;
		description = null;
		ISBN = null;
	}
	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 int getCount(){
		return this.count;
	}
	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;
	}
	public void setCount(int count){
		this.count = count;
	}
	
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -