/Object-Oriented-Programming-CSharp

:star: C# provides full support for object-oriented programming including encapsulation, inheritance, and polymorphism. Encapsulation means that a group of related properties, methods, and other members are treated as a single unit or object. Inheritance describes the ability to create new classes based on an existing class. Polymorphism means that you can have multiple classes that can be used interchangeably, even though each class implements the same properties or methods in different ways. This section describes the following concepts: Classes and Objects Class Members Properties and Fields Methods Constructors Destructors Events Nested Classes Access Modifiers and Access Levels Instantiating Classes Static Classes and Members Anonymous Types Inheritance Overriding Members Interfaces Generics Delegates

Primary LanguageC#MIT LicenseMIT

Object-Oriented-Programming-CSharp

🌟 C# provides full support for object-oriented programming including encapsulation, inheritance, and polymorphism. Encapsulation means that a group of related properties, methods, and other members are treated as a single unit or object. Inheritance describes the ability to create new classes based on an existing class. Polymorphism means that you can have multiple classes that can be used interchangeably, even though each class implements the same properties or methods in different ways.

This section describes the following concepts:

  • Classes and Objects
    • Class Members
      • Properties and Fields
      • Methods
      • Constructors
      • Destructors
      • Events
      • Nested Classes
    • Access Modifiers and Access Levels
    • Instantiating Classes
    • Static Classes and Members
    • Anonymous Types
  • Inheritance
    • Overriding Members
  • Interfaces
  • Generics
  • Delegates