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

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
主站蜘蛛池模板: 黄平县| 横山县| 邓州市| 积石山| 永靖县| 海南省| 慈溪市| 天祝| 淮安市| 黔南| 安宁市| 东至县| 石屏县| 沙田区| 漳浦县| 象州县| 贞丰县| 兰坪| 新蔡县| 绥宁县| 拉萨市| 鱼台县| 柞水县| 永靖县| 万源市| 梁河县| 万盛区| 隆昌县| 峨眉山市| 平江县| 弋阳县| 白河县| 兴文县| 海城市| 鸡泽县| 渭南市| 成安县| 云梦县| 庄河市| 榕江县| 永吉县|