- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 58字
- 2021-07-03 00:12:04
Open/closed principle
When creating classes, we need to ensure that the class prohibits any breaking modifications by needing to change internal code. We say that such a class is closed. If we need to change it somehow, we can do so by extending the class. This extensibility is where we say that the class is open for extensions.
推薦閱讀
- Visual Studio 2012 Cookbook
- Vue.js 3.x從入門到精通(視頻教學(xué)版)
- 精通搜索分析
- Java游戲服務(wù)器架構(gòu)實(shí)戰(zhàn)
- HTML5 and CSS3 Transition,Transformation,and Animation
- Flux Architecture
- Scala Functional Programming Patterns
- Secret Recipes of the Python Ninja
- 深度學(xué)習(xí)程序設(shè)計(jì)實(shí)戰(zhàn)
- ASP.NET Core and Angular 2
- Android 5從入門到精通
- 循序漸進(jìn)Vue.js 3前端開發(fā)實(shí)戰(zhàn)
- 少年小魚的魔法之旅:神奇的Python
- MATLAB計(jì)算機(jī)視覺實(shí)戰(zhàn)
- WebRTC Cookbook