- 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.
推薦閱讀
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- 自制編譯器
- 微服務設計原理與架構
- Windows Phone 7.5:Building Location-aware Applications
- Learning Apache Cassandra
- HTML5秘籍(第2版)
- C++20高級編程
- 算法圖解
- 大學計算機基礎實訓教程
- Unity Android Game Development by Example Beginner's Guide
- ArcPy and ArcGIS(Second Edition)
- Java核心編程
- 優化驅動的設計方法
- Learning ROS for Robotics Programming
- HTML5程序開發范例寶典