book.java

来自「功能简单的网上电子书店 javabean」· Java 代码 · 共 68 行

JAVA
68
字号
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 + =
减小字号Ctrl + -
显示快捷键?