官术网_书友最值得收藏!

SOLID design principles

This brings us to another interesting concept in OOP called SOLID design principles. These design principles apply to any OOP design and are intended to make software easier to understand, more flexible, and easily maintainable.

The term SOLID is a mnemonic for:

  • Single responsibility principle
  • Open/closed principle
  • Liskov substitution principle
  • Interface segregation principle
  • Dependency inversion principle

In this chapter, we will only take a look at the first two principles—the single responsibility principle and the open/closed principle. Let's look at the single responsibility principle next.

主站蜘蛛池模板: 上杭县| 荆门市| 林周县| 黎平县| 长沙市| 宁河县| 惠来县| 宁夏| 新沂市| 赤城县| 固安县| 南皮县| 肇州县| 锡林浩特市| 仁化县| 兖州市| 左云县| 阿巴嘎旗| 昔阳县| 紫云| 金塔县| 义马市| 景德镇市| 阳原县| 池州市| 图片| 玉门市| 法库县| 噶尔县| 岱山县| 思茅市| 定远县| 道孚县| 图们市| 沽源县| 宜兴市| 平遥县| 平陆县| 神木县| 溆浦县| 道孚县|