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

Implementation of OOP in C#

In the previous chapter, we looked at classes, objects, and the four principles of OOP. In this chapter, we will learn about some C# language features that make the language an OOP language. Without knowing these concepts, writing object-oriented code with C# programming could be difficult, or will prevent you from using it to its full potential. In Chapter 2, Hello OOP - Classes and Objects, we learned that abstraction, inheritance, encapsulation, and polymorphism are the four basic principles of OOP, but we haven't yet learned how the C# language can be used to fulfill these principles. We are going to discuss this topic in this chapter.

In this chapter, we will cover the following topics:

  • Interfaces
  • The abstract class
  • The partial class
  • The sealed class
  • Tuples
  • Properties
  • Access specifiers for classes
主站蜘蛛池模板: 巴马| 阆中市| 左权县| 甘南县| 杭锦旗| 治多县| 扶绥县| 灯塔市| 璧山县| 辽中县| 江油市| 闻喜县| 松溪县| 文昌市| 平遥县| 丰县| 军事| 武冈市| 印江| 东港市| 凤台县| 花垣县| 泾阳县| 永寿县| 西城区| 汉沽区| 晋中市| 辽阳县| 满城县| 商都县| 武强县| 牟定县| 武威市| 讷河市| 嫩江县| 阜平县| 昆明市| 莲花县| 黑山县| 宜良县| 永康市|