登录
首页 » Java » Java

Java

于 2020-07-01 发布
0 237
下载积分: 1 下载次数: 4

代码说明:

说明:  设计模式一(单子、工厂、策略模式)练习 1. 假设现在要设计一个贩卖各类书籍的电子商务网站的购物车系统。对所有的教材类图书 实行每本一元的折扣;对连环画类图书提供每本7%的促销折扣;而对非教材类的计算机图书有3%的折扣;对其余书没有折扣。使用策略模式、工厂模式、单子模式进行设计(Design Mode 1 (List, Factory, Strategy Mode) Exercise 1. Suppose we are going to design a shopping cart system for e-commerce websites that sell all kinds of books. All textbook books are discounted at one yuan per book; comic books are discounted at 7% per book; computer books are discounted at 3% for non-textbook books; and other books are discounted at no rate. Design using strategy mode, factory mode and single mode)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • example
    Java大学实用教程(第2版)书中例子的程序源代码(Java University Practical Course (2nd edition) book example source code)
    2013-03-07 13:21:33下载
    积分:1
  • uGopp_GA
    基于遗传算法的电力系统优化运行算法,在新能源电力系统中,实现各类分布式电源的优化出力(The optimal operation algorithm of power system based on genetic algorithm is used to realize the optimal output of all kinds of distributed power supply in new energy power system)
    2017-08-15 18:45:24下载
    积分:1
  • ghsc267131120510091
    deepstream.io-tools-react: A react mixin that syncs a component s state with deepstream
    2016-06-12 10:26:54下载
    积分:1
  • REST-spring-security
    本项目主要使用spring security对restful webservice进行安全控制(This project is mainly for restful webservice using spring security for security control)
    2013-10-13 09:54:06下载
    积分:1
  • Employee
    创建四个类,分别为Employee类、SalariedEmplyee类、HourlyEmployee类和CommissionEmployee类。其中Employee类是其他三个类的父类。Employee类包含姓名和身份证号。除此之外,SalariedEmployee类还应包含每月工资;HourlyEmployee类还应包含每小时工资数和工作时间数;CommissionEmployee还应包含提成比例和销售总额。每个类都应有合适的构造方法、数据成员的设置和读取方法。编写一个应用程序,创建这些类的对象,并输出与对象相关的信息。注意子类有时需调用父类的构造方法和被覆盖的方法,成员变量定义为private,对有些方法实现重载。 (Create four categories, namely the Employee class, SalariedEmplyee class, HourlyEmployee classes and CommissionEmployee classes. Employee class is the parent class where the other three classes. Employee class contains the name and ID number. In addition, SalariedEmployee class also includes a monthly salary HourlyEmployee class should also include the number of hourly wages and the number of working hours CommissionEmployee should also include the proportion and total sales commission. Each class should have the right to set and read the constructor method, data members. Write an application to create objects of these classes, and output information associated with the object. Sometimes need to call attention to a subclass of the parent class constructor and methods are covered, member variables defined as private, to achieve overloading of some methods.)
    2013-11-27 11:43:06下载
    积分:1
  • JFunc
    buffer Arg Names Source Code for Andriod.
    2014-01-03 19:40:26下载
    积分:1
  • javacomm20-win32
    说明:  Java Comm Version 2, can use for SMSLib
    2020-12-01 04:39:28下载
    积分:1
  • hivetomysql
    JAVA实现HIve的UDAF,完成多条数据插入MYSQL的结果。输入参数与标准Hive插入msyql的jar一致。(翻译 JAVA实现HIve的UDAF,完成多条数据插入MYSQL的结果。输入参数与标准Hive插入msyql的jar一致。 JAVA achieve HIve the UDAF, the completion of multiple data into MYSQL results. The input parameters are the same as the standard Hive jars inserted into msyql.)
    2016-11-15 11:34:11下载
    积分:1
  • TopModel
    topmodel arcgis 水文模型(Application of TOPMODEL-based Hydrological Model)
    2017-12-28 18:32:15下载
    积分:1
  • wanglguanlixtong
    java版的网络管理系统,是一个有极大的针对行的网络管理系统,专门用来小型的网络系统的,千万不要错过了哦(java version of the network management system is a great address the network management system. devoted to the small network, Do not miss oh)
    2007-04-10 03:06:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载