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

📄 product.java.bak

📁 DAO模式写的购物车程序
💻 BAK
字号:
package basket; 

public class Product
{	private String id;
	private String name;
	private float price;
	Product()
		{}
	public Prodcut(String id,String name,float price){
	this.id=id;
	this.name=name;
	this.price=price;
	}
	
}
public String getId(){
	return this.id;
}
public void setId(String id){
	this.id=id;
}
public String getName(){
	return this.name;
}
public void setName(String name){
	this.name=name;
}
public float getPrice(){
	return this.price;
}
public void setPrice(float price){
	this.price=price;
}

 
 class Item
{Product aa;
int num;
Item()
	{}
Item(Product aa,int num){
	this.aa=aa;
	this.num=num;
}

⌨️ 快捷键说明

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