文件名称:OnlineStore
-
所属分类:
- 标签属性:
- 上传时间:2015-11-03
-
文件大小:15.86kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
OnlineStore/.project
OnlineStore/.settings/org.eclipse.jdt.core.prefs
OnlineStore/bin/Book.class
OnlineStore/bin/Cart.class
OnlineStore/bin/Cartitem.class
OnlineStore/bin/Customer.class
OnlineStore/bin/Food.class
OnlineStore/bin/Item.class
OnlineStore/bin/Member.class
OnlineStore/bin/Order.class
OnlineStore/bin/SettleAccount.class
OnlineStore/bin/shiyan3.class
OnlineStore/src/Book.java
OnlineStore/src/Cart.java
OnlineStore/src/Cartitem.java
OnlineStore/src/Customer.java
OnlineStore/src/Food.java
OnlineStore/src/Item.java
OnlineStore/src/Member.java
OnlineStore/src/Order.java
OnlineStore/src/SettleAccount.java
OnlineStore/src/shiyan3.java
OnlineStore/.settings
OnlineStore/bin
OnlineStore/src
OnlineStore
OnlineStore/.project
OnlineStore/.settings/org.eclipse.jdt.core.prefs
OnlineStore/bin/Book.class
OnlineStore/bin/Cart.class
OnlineStore/bin/Cartitem.class
OnlineStore/bin/Customer.class
OnlineStore/bin/Food.class
OnlineStore/bin/Item.class
OnlineStore/bin/Member.class
OnlineStore/bin/Order.class
OnlineStore/bin/SettleAccount.class
OnlineStore/bin/shiyan3.class
OnlineStore/src/Book.java
OnlineStore/src/Cart.java
OnlineStore/src/Cartitem.java
OnlineStore/src/Customer.java
OnlineStore/src/Food.java
OnlineStore/src/Item.java
OnlineStore/src/Member.java
OnlineStore/src/Order.java
OnlineStore/src/SettleAccount.java
OnlineStore/src/shiyan3.java
OnlineStore/.settings
OnlineStore/bin
OnlineStore/src
OnlineStore
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.