文件名称:OnlineStore
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2015-11-03
- 文件大小:
- 16kb
- 下载次数:
- 0次
- 提 供 者:
- I**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
1. 设计2-3个具体的货物类(如书本类Book,食品类Food等)继承自货物类Item,增加成员变量和成员方法,重写父类已有的方法printItemInfo()
2. 1)设计结算接口SettleAccount,定义方法getAccount();
2) 设计SettleAccount接口实现类Customer和Member。Customer为普通顾客类,结算金额为购物车价格总计+配送费8元;Member为会员类,结算金额为购物车价格总计的7折,无需配送费。
3) 设计订单类Order,定义购物车类Cart对象,SettleAccount接口变量,其成员方法包括:构造函数,set和get方法,打印订单信息方法printOrderInfo()来输出购物车信息和结算金额
3. 在主方法中实现:
1) 定义2个订单类Order对象,普通顾客订单order1和会员订单order2,初始化变量
2) 分别对购物车添加若干购物车物品,并打印订单信息
3) 分别修改某一购物车物品的数量,并打印订单信息
4) 分别对购物车删除若干购物车物品,并打印订单信息
-1. Design 2-3 specific goods (such as books class Book, Food Food, etc.) inherited the cargo class Item, increase member variables and member methods, override the parent class has a method printItemInfo () 2. 1) Design settlement Interface SettleAccount, define methods getAccount () 2) design SettleAccount interface class Customer and Member. Customer as an ordinary customer class, the settlement amount of shopping cart price Total+ Shipment eight yuan Member of the class members, the settlement amounted to cart price totaled 7 , no delivery fee. 3) design wins Class Order, define the class Cart Shopping Cart objects, SettleAccount interface variables, its members comprising: a constructor, set and get methods, print order information methods printOrderInfo () to output the shopping cart information and 3. In the main settlement amount Methods to achieve: 1) Define two orders Order object classes, and members of the general customer orders order1 orders order2, initialize variables
2. 1)设计结算接口SettleAccount,定义方法getAccount();
2) 设计SettleAccount接口实现类Customer和Member。Customer为普通顾客类,结算金额为购物车价格总计+配送费8元;Member为会员类,结算金额为购物车价格总计的7折,无需配送费。
3) 设计订单类Order,定义购物车类Cart对象,SettleAccount接口变量,其成员方法包括:构造函数,set和get方法,打印订单信息方法printOrderInfo()来输出购物车信息和结算金额
3. 在主方法中实现:
1) 定义2个订单类Order对象,普通顾客订单order1和会员订单order2,初始化变量
2) 分别对购物车添加若干购物车物品,并打印订单信息
3) 分别修改某一购物车物品的数量,并打印订单信息
4) 分别对购物车删除若干购物车物品,并打印订单信息
-1. Design 2-3 specific goods (such as books class Book, Food Food, etc.) inherited the cargo class Item, increase member variables and member methods, override the parent class has a method printItemInfo () 2. 1) Design settlement Interface SettleAccount, define methods getAccount () 2) design SettleAccount interface class Customer and Member. Customer as an ordinary customer class, the settlement amount of shopping cart price Total+ Shipment eight yuan Member of the class members, the settlement amounted to cart price totaled 7 , no delivery fee. 3) design wins Class Order, define the class Cart Shopping Cart objects, SettleAccount interface variables, its members comprising: a constructor, set and get methods, print order information methods printOrderInfo () to output the shopping cart information and 3. In the main settlement amount Methods to achieve: 1) Define two orders Order object classes, and members of the general customer orders order1 orders order2, initialize variables
(系统自动生成,下载前可以参看下载内容)
下载文件列表
OnlineStore\.classpath
...........\.project
...........\.settings\org.eclipse.jdt.core.prefs
...........\bin\Book.class
...........\...\Cart.class
...........\...\Cartitem.class
...........\...\Customer.class
...........\...\Food.class
...........\...\Item.class
...........\...\Member.class
...........\...\Order.class
...........\...\SettleAccount.class
...........\...\shiyan3.class
...........\src\Book.java
...........\...\Cart.java
...........\...\Cartitem.java
...........\...\Customer.java
...........\...\Food.java
...........\...\Item.java
...........\...\Member.java
...........\...\Order.java
...........\...\SettleAccount.java
...........\...\shiyan3.java
...........\.settings
...........\bin
...........\src
OnlineStore