DesignPatternExamples:设计模式的例子-源码

上传者: 42116596 | 上传时间: 2021-07-05 13:05:57 | 文件大小: 58KB | 文件类型: ZIP
设计模式示例 这是设计模式的一些例子。 这是我的工作。 我参考了其他来源来创建这个 repos。 我创建它是为了学习如何正确使用设计模式。 我总是想知道为什么人们使用设计模式来构建软件? 我认为这不是必需的。 我只是使用class的概念,用我自己的方式构建软件。 这并不容易理解,需要我多次学习。 所以我认为学习它不是一个好主意。 但是现在,我认为我可以通过设计模式的结构更好更快地构建软件。 它使系统更具结构性和灵活性。 我可以使用我的旧代码并使其更有用。 I hope you can use it like me or even better :D 可用模式: 图案 C# C++ 模板方法 X X 战略 X 状态 X 单身人士 X X 原型 X 合成的 X 工厂方法 X

文件下载

资源详情

[{"title":"( 94 个子文件 58KB ) DesignPatternExamples:设计模式的例子-源码","children":[{"title":"DesignPatternExamples-master","children":[{"title":".gitattributes <span style='color:#111;'> 483B </span>","children":null,"spread":false},{"title":"State_CSharp","children":[{"title":"State_CSharp.csproj <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"Button","children":[{"title":"State","children":[{"title":"ON.cs <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"OFF.cs <span style='color:#111;'> 574B </span>","children":null,"spread":false},{"title":"ButtonState.cs <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":true},{"title":"ButtonMachine.cs <span style='color:#111;'> 562B </span>","children":null,"spread":false}],"spread":true},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"App.config <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"Core","children":[{"title":"Context.cs <span style='color:#111;'> 448B </span>","children":null,"spread":false},{"title":"State","children":[{"title":"StateThree.cs <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"StateTwo.cs <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"StateAbstract.cs <span style='color:#111;'> 262B </span>","children":null,"spread":false},{"title":"StateOne.cs <span style='color:#111;'> 329B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"ATM","children":[{"title":"State","children":[{"title":"NoCash.cs <span style='color:#111;'> 947B </span>","children":null,"spread":false},{"title":"ATMStateMachine.cs <span style='color:#111;'> 393B </span>","children":null,"spread":false},{"title":"NoCard.cs <span style='color:#111;'> 937B </span>","children":null,"spread":false},{"title":"HasCard.cs <span style='color:#111;'> 941B </span>","children":null,"spread":false},{"title":"HasPin.cs <span style='color:#111;'> 888B </span>","children":null,"spread":false}],"spread":true},{"title":"ATMMachine.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Composite_CSharp","children":[{"title":"Program.cs <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"Composite_CSharp.csproj <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"App.config <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"Arithmetic","children":[{"title":"Composite","children":[{"title":"ArithmeticExpression.cs <span style='color:#111;'> 267B </span>","children":null,"spread":false},{"title":"CompositeOperand.cs <span style='color:#111;'> 782B </span>","children":null,"spread":false},{"title":"NumbericOperand.cs <span style='color:#111;'> 461B </span>","children":null,"spread":false}],"spread":true},{"title":"Strategy","children":[{"title":"Summation.cs <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"Division.cs <span style='color:#111;'> 342B </span>","children":null,"spread":false},{"title":"Subtraction.cs <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"Operator.cs <span style='color:#111;'> 311B </span>","children":null,"spread":false},{"title":"Multiplication.cs <span style='color:#111;'> 348B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Singleton_CSharp","children":[{"title":"Program.cs <span style='color:#111;'> 489B </span>","children":null,"spread":false},{"title":"Singleton_CSharp.csproj <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"GlobalClass.cs <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 182B </span>","children":null,"spread":false}],"spread":true},{"title":"DesignPatternExamples.sln <span style='color:#111;'> 9.52KB </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"Singleton_CPP","children":[{"title":"Singleton_CPP.vcxproj <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"Source.cpp <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"Singleton_CPP.vcxproj.filters <span style='color:#111;'> 937B </span>","children":null,"spread":false}],"spread":true},{"title":"Prototype_CSharp","children":[{"title":"Bakery","children":[{"title":"BakeryStore.cs <span style='color:#111;'> 760B </span>","children":null,"spread":false},{"title":"Prototype","children":[{"title":"Doughnut.cs <span style='color:#111;'> 366B </span>","children":null,"spread":false},{"title":"CakeFactory.cs <span style='color:#111;'> 784B </span>","children":null,"spread":false},{"title":"Cheesecake.cs <span style='color:#111;'> 372B </span>","children":null,"spread":false},{"title":"Cake.cs <span style='color:#111;'> 790B </span>","children":null,"spread":false},{"title":"RedVelvet.cs <span style='color:#111;'> 370B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 684B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"App.config <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"Prototype_CSharp.csproj <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"FactoryMethod_CPP","children":[{"title":"CakeProducer.cpp <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"Food.cpp <span style='color:#111;'> 279B </span>","children":null,"spread":false},{"title":"Factory.cpp <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"StrawberryCream.cpp <span style='color:#111;'> 147B </span>","children":null,"spread":false},{"title":"IceCreamFactory.cpp <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"FactoryMethod_CPP.vcxproj.filters <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"Cake.cpp <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"FactoryMethod_CPP.vcxproj <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false},{"title":"Source.cpp <span style='color:#111;'> 962B </span>","children":null,"spread":false},{"title":"Cheesecakes.cpp <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"IceCream.cpp <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"BakeryStore.cpp <span style='color:#111;'> 960B </span>","children":null,"spread":false},{"title":"ChocolateCream.cpp <span style='color:#111;'> 145B </span>","children":null,"spread":false},{"title":"RedVelvet.cpp <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"IceCreamProducer.cpp <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"CakeFactory.cpp <span style='color:#111;'> 473B </span>","children":null,"spread":false},{"title":"Doughnut.cpp <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"Producer.cpp <span style='color:#111;'> 374B </span>","children":null,"spread":false}],"spread":false},{"title":"Strategy_CSharp","children":[{"title":"Program.cs <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"Animal.cs <span style='color:#111;'> 627B </span>","children":null,"spread":false},{"title":"Eagle.cs <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"Strategy","children":[{"title":"CanFly.cs <span style='color:#111;'> 273B </span>","children":null,"spread":false},{"title":"CantFly.cs <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"FlyType.cs <span style='color:#111;'> 181B </span>","children":null,"spread":false}],"spread":false},{"title":"Tiger.cs <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":false},{"title":"App.config <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"Strategy_CSharp.csproj <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 714B </span>","children":null,"spread":false},{"title":"TemplateMethod_CPP","children":[{"title":"Base.cpp <span style='color:#111;'> 736B </span>","children":null,"spread":false},{"title":"Source.cpp <span style='color:#111;'> 569B </span>","children":null,"spread":false},{"title":"TemplateMethod_CPP.vcxproj.filters <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"SortTemplateMethod.cpp <span style='color:#111;'> 530B </span>","children":null,"spread":false},{"title":"TemplateMethod_CPP.vcxproj <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"TemplateMethod_CSharp","children":[{"title":"Postman.cs <span style='color:#111;'> 308B </span>","children":null,"spread":false},{"title":"Worker.cs <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":false},{"title":"TemplateMethod_CSharp.csproj <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"Manager.cs <span style='color:#111;'> 413B </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 182B </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明