Item.java~2~
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- package shoppingcart;
- //package jspin24hrs.hour16;
- public class Item {
- String SKU, name, description;
- int quantity=1;
- double price;
- public Item(){}
- public Item(String s, String n, String d,int q, double p){
- SKU= s;
- name = n;
- description = d;
- quantity=q;
- price = p;
- }
- public String getName(){return name;}
- public String getSku(){return SKU;}
- public String getDescription(){return description;}
- public int getQuantity(){return quantity;}
- public double getPrice(){return price;}
- }