shoppingcartitem.java

来自「SSH 开发网上订餐系统。由于SSH相关包太大不方便上传。请自行导入。」· Java 代码 · 共 31 行

JAVA
31
字号
package com.web.util;

public class ShoppingCartItem {
	Object item ;
	int quantity ;
	public ShoppingCartItem(Object obj) 
	{
		this.item = obj ;
		this.quantity = 1 ;
	}
	public void setQuantity(int quantity) 
	{
		this.quantity = quantity ;
	}
	public int getQuantity() 
	{
		return this.quantity ;
	}	
	public void increment()
	{
		this.quantity++ ;
	}
	public Object getItem() {
		return item;
	}
	public void setItem(Object item) {
		this.item = item;
	}
	
}

⌨️ 快捷键说明

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