- 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.
推薦閱讀
- Learning Single:page Web Application Development
- scikit-learn Cookbook
- Julia機(jī)器學(xué)習(xí)核心編程:人人可用的高性能科學(xué)計(jì)算
- MATLAB定量決策五大類問題
- ASP.NET 3.5程序設(shè)計(jì)與項(xiàng)目實(shí)踐
- Android底層接口與驅(qū)動(dòng)開發(fā)技術(shù)詳解
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)習(xí)題解答與上機(jī)指導(dǎo)(第三版)
- Learning Apache Karaf
- 基于SpringBoot實(shí)現(xiàn):Java分布式中間件開發(fā)入門與實(shí)戰(zhàn)
- 快速入門與進(jìn)階:Creo 4·0全實(shí)例精講
- 案例式C語(yǔ)言程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)
- Instant Zurb Foundation 4
- Python數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南(全彩)
- 深入理解Kafka:核心設(shè)計(jì)與實(shí)踐原理
- C/C++代碼調(diào)試的藝術(shù)(第2版)