找回密码
 立即注册
相关推荐换一批
  1. 易语言手机IMEI校验码算法源码
  2. 易语言高斯算法源码
  3. 易语言企鹅加密解密1.5
  4. 易语言C源码,易语言S源码,易语言远程控制实现源码
  5. 易语言 云的注册算法支持库 1.1 版
  6. 电力物流行业市场前景如何?电力物流行业市场前景分析报告
  7. JT/T 1356.1-2020 城市公共交通IC卡检测规范第1部分:卡片应用
  8. YD/T 937-1997 视听业务的保密系统
  9. GA/T 1208-2014 安防虹膜识别应用算法评测方法
  10. TB/T 3332-2013 铁路应用确定轮轨等效锥度的方法
  11. YD/T 3207-2016 多应用 elD 载体商用密码算法接口技术要求
  12. GB/T 38635.2-2020 信息安全技术 SM9标识密码算法 第2部分:算法
  13. DL/T 785-2001 火力发电厂中温中压管道(件)安全技术导则
  14. GB/T 38122-2019 公共安全指纹识别应用 验证算法性能评测方法
  15. GB∕T 38122-2019 公共安全指纹识别应用 验证算法性能评测方法
  16. NB/SH/T 0835-2010 石油馏分黏重常数(VGC)计算法
  17. GB/T 12583-1998 润滑剂极压性能测定法(四球法)
  18. SH/T 0572-1993 催化剂孔径分布计算法(氮脱附等温线计算法)
  19. SH/T 0725-2002 石油基绝缘油碳型组成计算法
  20. 中山大学附属小学2016-2017学年度一年级英语上学期期末学业水平测试卷
  21. 2013年新派英语一年级下册期末综合测试卷(含听力材料与参考答案)
  22. 小学二年级英语下学期期末综合复习检测卷及参考答案
  23. GB/T 16976-1997 信息技术 系统间远程通信和信息交换使用X.25提供OSI连接方式网络服
  24. GB/T 16686-1996 信息技术 信息交换用数据压缩 具有嵌入字典的自适应编码 DCLZ算法
TheSoftware实现算法 | java书籍 2022-06-15 422 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
文章分类:Java编程1.策略模式部分
*面向对象(00)的四个基本概念是:抽象、封装、继承、多态。
软件设计原则:封装变更——将软件中未来可能发生变更的部分分开,并与其他部分分开,以减少变更对它们的影响。这样的设计可以使系统具有弹性并更好地响应变化。
软件设计原则:程序为接口,不为实现。根据这个原则,在声明变量时,声明为超类型(接口或抽象类),而不是实现类。
* 继承的好处是实现代码复用。
*软件开发人员在“之后”花费更多的时间软件开发比“之前”既然已经完成了,那么就应该着眼于提高复用程度,以实现可维护性和可扩展性。
软件设计原则:多使用组合,少继承。使用组合方式可以实现代码的划分,使代码更加灵活,更好的提高可重用性。
策略模式:定义一组算法族,分别封装,使每个算法可以相互替换。此模式允许算法独立于使用算法的客户端进行更改。

(Article classification: Java programming 1 Policy mode section
*The four basic concepts of object-oriented (00) are: abstraction, encapsulation, inheritance and polymorphism.
Software design principle: encapsulate changes - separate the parts of the software that may change in the future and separate them from other parts to reduce the impact of changes on them. Such a design can make the system elastic and better respond to changes.
Software design principle: the program is an interface, not an implementation. According to this principle, variables are declared as supertypes (interfaces or abstract classes) rather than implementation classes.
*The benefit of inheritance is code reuse.
*Software developers spend more time "after" than "before". Now that software development has been completed, we should focus on improving the degree of reuse to achieve maintainability and scalability.
Software design principle: use more combinations and less inheritance. Using composition method can realize code division, make code more flexible and improve reusability better.
Policy pattern: define a group of algorithm families, which are encapsulated separately, so that each algorithm can be replaced with each other. This mode allows the algorithm to be changed independently of the client using the algorithm.)

[下载]16432939066.rar




上一篇:《Effective Java中文版 第2版》
下一篇:《HTML5从入门到精通》中文学习教程.pdf