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

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
主站蜘蛛池模板: 河池市| 南开区| 祁门县| 麻城市| 西盟| 南宁市| 连州市| 油尖旺区| 鄢陵县| 拉孜县| 当阳市| 天津市| 错那县| 贞丰县| 阳谷县| 台东县| 浮山县| 麻栗坡县| 庆安县| 呼玛县| 营口市| 文山县| 南雄市| 永寿县| 威信县| 体育| 奉贤区| 巫溪县| 分宜县| 大埔县| 许昌县| 康平县| 河南省| 安康市| 宜兰市| 沽源县| 广州市| 秦安县| 吉安县| 商丘市| 忻州市|