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

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
主站蜘蛛池模板: 上思县| 温州市| 禄丰县| 安西县| 平利县| 徐汇区| 丹凤县| 上虞市| 加查县| 马边| 克什克腾旗| 迁西县| 黔西县| 大同县| 泰和县| 大邑县| 新源县| 伊春市| 内江市| 阜平县| 平原县| 邢台市| 理塘县| 江孜县| 贵州省| 孝昌县| 正安县| 湘潭县| 芦山县| 吴忠市| 千阳县| 阿拉善盟| 二连浩特市| 桦甸市| 嘉义市| 措勤县| 彭州市| 邢台县| 腾冲县| 尉氏县| 玛多县|