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

📄 product.java

📁 网上购物车的JAVA代码实现版
💻 JAVA
字号:
package feng.shoppingcart.entity;import java.io.*;public class Product implements Serializable {	private Integer id;	private String name;	private String description;	private double price;	public Product(){}		public Product(Integer id, String name, String description, double price) {		super();		this.id = id;		this.name = name;		this.description = description;		this.price = price;	}	public Integer getId() {		return id;	}	public void setId(Integer id) {		this.id = id;	}	public String getName() {		return name;	}	public void setName(String name) {		this.name = name;	}	public String getDescription() {		return description;	}	public void setDescription(String description) {		this.description = description;	}	public double getPrice() {		return price;	}	public void setPrice(double price) {		this.price = price;	}	public String toString(){		return "id: "+id+"  name:"+name+"  price:"+price;	}}

⌨️ 快捷键说明

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