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

  • C# 7 and .NET Core Cookbook
  • Dirk Strauss
  • 134字
  • 2021-07-03 00:12:00

Introduction

During your career as a creator of software, you will hear the term OOP many times. This design philosophy allows for objects to exist independently and can be reused by different sections of code. This is all made possible by what we refer to as the four pillars of OOP: inheritance, encapsulation, abstraction, and polymorphism.

In order to grasp this, you need to start thinking of objects (which are basically instantiated classes) that perform a specific task. Classes need to adhere to the SOLID design principle. This principle is explained here:

  • Single responsibility principle (SRP)
  • Open/closed principle
  • Liskov substitution principle (LSP)
  • Interface segregation principle
  • Dependency inversion principle

Let's start off with an explanation of the four pillars of OOP, after which we will take a look at the SOLID principle in more detail.

主站蜘蛛池模板: 建德市| 灌阳县| 兴山县| 鹿邑县| 安国市| 益阳市| 高清| 伊金霍洛旗| 故城县| 龙州县| 昌黎县| 宁乡县| 麟游县| 交城县| 湖南省| 上林县| 神木县| 会宁县| 柳江县| 会同县| 平舆县| 汝南县| 丹江口市| 双桥区| 和田县| 辽中县| 黑河市| 鄂尔多斯市| 抚顺县| 襄垣县| 石泉县| 县级市| 云霄县| 海阳市| 晋中市| 楚雄市| 光泽县| 房产| 增城市| 柞水县| 微山县|