• 大小: 787KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-22
  • 语言: 其他
  • 标签: 设计模式  

资源简介

设计模式 含代码及讲解 设计模式 含代码及讲解

资源截图

代码片段和文件信息

package Bridge;

 

public class BridgePattern

{

       GpColorSingleton gpColorSingleton = new GpColorSingleton(new ColorGp());

       DrawBigCircle bigCircle = new DrawBigCircle();

 

       GpColorSingleton gpUnColorSingleton = new GpColorSingleton(new UnColorGp());

       DrawSmallCircle smallCircle = new DrawSmallCircle();

       

       public void play()

       {

              bigCircle.drawGp(); //画出大的彩色圆

              smallCircle.drawGp(); //画出小的无彩圆

       }//end play()

       

       public static void main(String[] args)

       {

              BridgePattern bp = new BridgePattern();

              bp.play();

       }//end main(...)

 

}//end class BridgePattern

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        620  2009-08-20 09:37  src\Memento\Memento.java

     文件     199680  2009-08-20 09:31  src\Memento\index.doc

     文件        812  2009-08-20 09:36  src\Memento\Originator.java

     文件        548  2009-08-20 09:37  src\Memento\Caretaker.java

     文件        865  2009-08-20 09:36  src\Memento\MementoPattern.java

     文件        175  2009-08-20 09:44  src\State\State.java

     文件     200704  2009-08-20 09:43  src\State\index.doc

     文件        400  2009-08-20 09:48  src\State\ConcreteStateA.java

     文件        400  2009-08-20 09:48  src\State\ConcreteStateB.java

     文件        371  2009-08-20 09:46  src\State\Context.java

     文件        776  2009-08-20 09:47  src\State\StatePattern.java

     文件     267776  2009-08-20 09:50  src\Mediator\index.doc

     文件        168  2009-08-20 09:52  src\Mediator\Mediator.java

     文件        997  2009-08-20 09:55  src\Mediator\ConcreteMediator.java

     文件        130  2009-08-20 09:53  src\Mediator\Colleague.java

     文件        573  2009-08-20 09:55  src\Mediator\ColleagueA.java

     文件        562  2009-08-20 10:11  src\Mediator\ColleagueB.java

     文件        561  2009-08-20 09:56  src\Mediator\ColleagueC.java

     文件        862  2009-08-20 09:57  src\Mediator\MediatorPattern.java

     文件     365056  2009-08-20 09:58  src\Iterator\index.doc

     文件      55808  2009-08-20 09:59  src\Interpreter\index.doc

     文件     532992  2009-08-20 10:00  src\ChainOfResponsibility\index.doc

     文件        324  2009-08-20 10:01  src\ChainOfResponsibility\Handler.java

     文件        431  2009-08-20 10:02  src\ChainOfResponsibility\ConcreteHandler1.java

     文件        427  2009-08-20 10:02  src\ChainOfResponsibility\ConcreteHandler2.java

     文件        455  2009-08-20 10:03  src\ChainOfResponsibility\ConcreteHandler3.java

     文件       1081  2009-08-20 10:04  src\ChainOfResponsibility\ChainOfResponsibilityPattern.java

     文件        286  2009-08-20 11:28  src\Command\Command.java

     文件        306  2009-08-20 10:16  src\Command\ConcreteCommand.java

     文件        181  2009-08-20 10:16  src\Command\Receiver.java

............此处省略115个文件信息

评论

共有 条评论