- 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.
推薦閱讀
- Objective-C Memory Management Essentials
- ASP.NET Core 5.0開發入門與實戰
- TestNG Beginner's Guide
- Python Geospatial Development(Second Edition)
- Internet of Things with the Arduino Yún
- Visual C++應用開發
- Hands-On Natural Language Processing with Python
- 愛上micro:bit
- Frank Kane's Taming Big Data with Apache Spark and Python
- Python項目實戰從入門到精通
- Kotlin極簡教程
- 超好玩的Scratch 3.5少兒編程
- Android技術內幕(系統卷)
- 少兒編程輕松學(全2冊)
- Java 11 and 12:New Features