当前位置:网站首页>What are the principles of software design (OCP)
What are the principles of software design (OCP)
2022-07-06 02:54:00 【FYHannnnnn】
Article transferred from What is software design (OCP) principle _shanglizhangrui The column -CSDN Blog
When designing a module , The module should be extended without modification .
(1) Open to expansion
That is, when you want to expand the function , There is no need to change the internal code block , It can be extended directly ;
(2) Changes are closed
When extending a module , The internal code does not need to be changed .
边栏推荐
- codeforces每日5題(均1700)-第六天
- Network Security Learning - Web vulnerabilities (Part 1)
- 华为、H3C、思科命令对比,思维导图形式从基础、交换、路由三大方向介绍【转自微信公众号网络技术联盟站】
- Redis installation
- Deeply analyze the chain 2+1 mode, and subvert the traditional thinking of selling goods?
- "Hands on learning in depth" Chapter 2 - preparatory knowledge_ 2.3 linear algebra_ Learning thinking and exercise answers
- [Digital IC manual tearing code] Verilog asynchronous reset synchronous release | topic | principle | design | simulation
- Taobao focus map layout practice
- [ruoyi] set theme style
- RobotFramework入门(三)WebUI自动化之百度搜索
猜你喜欢
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 10
Apt installation ZABBIX
Communication between microservices
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22
[Yu Yue education] basic reference materials of digital electronic technology of Xi'an University of Technology
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9
4. File modification
My C language learning records (blue bridge) -- files and file input and output
Codeworks 5 questions per day (1700 average) - day 6
Microsoft speech synthesis assistant v1.3 text to speech tool, real speech AI generator
随机推荐
2.12 simulation
Day 50 - install vsftpd on ceontos6.8
RobotFramework入门(一)简要介绍及使用
My C language learning record (blue bridge) -- on the pointer
Redis installation
纯Qt版中国象棋:实现双人对战、人机对战及网络对战
MySQL winter vacation self-study 2022 11 (6)
C language - Blue Bridge Cup - promised score
Redis cluster deployment based on redis5
1. Dynamic parameters of function: *args, **kwargs
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 12
Installation and use tutorial of cobaltstrike-4.4-k8 modified version
2.11 simulation summary
Pat 1046 shortest distance (20 points) simulation
MySQL winter vacation self-study 2022 11 (9)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6
[ruoyi] enable Mini navigation bar
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 20
Technology sharing | what if Undo is too big