资源简介

这是我的设计模式作业:运用5个以上的设计模式创建一个系统。其中包括:1.单例模式
2.原型模式
3.抽象工厂模式+模板方法模式
4.代理模式
5.策略模式
详见博文:http://mp.blog.csdn.net/mdeditor/index/78696300

资源截图

代码片段和文件信息

package designHomework;

public class AMDCPU extends CPU{

@SuppressWarnings(“unused“)
private Product product;

public AMDCPU(){
}

public AMDCPU(Product product){
this.product = product;
System.out.println(“AMD cpu 被生产出来了“);
System.out.println(“装上AMD CPU“);
}

@Override
public void describe() {

System.out.println(“AMD cpu 被生产出来了“);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-08 02:09  designHomework\
     文件         301  2017-12-17 16:44  designHomework\.classpath
     文件         390  2017-12-17 16:44  designHomework\.project
     目录           0  2018-01-08 02:09  designHomework\.settings\
     文件         598  2017-12-17 16:44  designHomework\.settings\org.eclipse.jdt.core.prefs
     目录           0  2018-01-08 02:09  designHomework\bin\
     目录           0  2018-01-08 02:09  designHomework\bin\designHomework\
     文件         734  2017-12-17 16:44  designHomework\bin\designHomework\AMDCPU.class
     文件         647  2017-12-17 16:44  designHomework\bin\designHomework\AMDFactory.class
     文件         772  2017-12-17 16:44  designHomework\bin\designHomework\AMDGraphicCard.class
     文件        1631  2017-12-17 16:44  designHomework\bin\designHomework\client1.class
     文件         716  2017-12-17 16:44  designHomework\bin\designHomework\Context.class
     文件         490  2017-12-17 16:44  designHomework\bin\designHomework\CPU.class
     文件        1978  2017-12-17 16:44  designHomework\bin\designHomework\Customer.class
     文件         282  2017-12-17 16:44  designHomework\bin\designHomework\Decorator.class
     文件         888  2017-12-17 16:44  designHomework\bin\designHomework\DellHeadOffice.class
     文件        1301  2017-12-17 16:44  designHomework\bin\designHomework\Director.class
     文件         792  2017-12-17 16:44  designHomework\bin\designHomework\EShopProxy.class
     文件         470  2017-12-17 16:44  designHomework\bin\designHomework\Factory.class
     文件         517  2017-12-17 16:44  designHomework\bin\designHomework\GraphicCard.class
     文件        1026  2017-12-17 16:44  designHomework\bin\designHomework\Mail.class
     文件         567  2017-12-17 16:44  designHomework\bin\designHomework\MainBorad.class
     文件       32057  2017-12-17 16:44  designHomework\bin\designHomework\newfile.cld
     文件         749  2017-12-17 16:44  designHomework\bin\designHomework\NVIDIACPU.class
     文件         662  2017-12-17 16:44  designHomework\bin\designHomework\NVIDIAFactory.class
     文件         787  2017-12-17 16:44  designHomework\bin\designHomework\NVIDIAGraphicCard.class
     文件         295  2017-12-17 16:44  designHomework\bin\designHomework\Product.class
     文件         150  2017-12-17 16:44  designHomework\bin\designHomework\ProductSeller.class
     文件         571  2017-12-17 16:44  designHomework\bin\designHomework\SaleDepartment.class
     文件        1092  2017-12-17 16:44  designHomework\bin\designHomework\SonDellOffice.class
     文件         135  2017-12-17 16:44  designHomework\bin\designHomework\Strategy.class
............此处省略34个文件信息

评论

共有 条评论