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

📄 disk.java

📁 Eclipse编程技术与实例一书的附CD-ROM光盘
💻 JAVA
字号:
/*
 * 创建日期 2005-8-1
 *
 * TODO 要更改此生成的文件的模板,请转至
 * 窗口 - 首选项 - Java - 代码样式 - 代码模板
 */
package shop;

/**
 * @author YE
 * 
 * TODO 要更改此生成的类型注释的模板,请转至 窗口 - 首选项 - Java - 代码样式 - 代码模板
 */
public class Disk {

	/**
	 *  
	 */
	String album;

	String artist;

	String country;

	float price;

	int quantity;

	public Disk() {
		album = "";
		artist = "";
		country = "";
		price = 0;
		quantity = 0;
	}

	public void setAlbum(String title) {
		album = title;
	}

	public String getAlbum() {
		return album;
	}

	public void setArtist(String group) {
		artist = group;
	}

	public String getArtist() {
		return artist;
	}

	public void setCountry(String cty) {
		country = cty;
	}

	public String getCountry() {
		return country;
	}

	public void setPrice(float p) {
		price = p;
	}

	public float getPrice() {
		return price;
	}

	public void setQuantity(int q) {
		quantity = q;
	}

	public int getQuantity() {
		return quantity;
	}

}

⌨️ 快捷键说明

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