C# Features

C# has several key features are given as follows:

Simple:

C# is a simple and small programming language. C# simplifies the C++ irksome operators such as ->: :. C# treats integer and Boolean data types as two entirely different types. This means that the use of = in place of = = in if statements will be caught by the compiler.

Object-Oriented:

C# is an object-oriented programming language beacuse it supports three object-oriented systems such as:

  • Inheritance
  • Polymorphism
  • Encapsulation
  • In C#, everything is an object, there are no more global functions, variables and constants. In C#, the class model is built on top of the Virtual Object System (VOS) of the .NET Framework.

    Consistent:

    C# supports an unified type system which eliminates the problem of varying ranges of integer types. These all data types are treated as objects easily.

    Modern:

    C# is a modern language because it supports some following features :

  • Automatic garbage collection
  • Modern approach to debugging
  • Rich intrinsic model for error handling
  • Decimal data type for financial applications.
  • Robust security model
  • Recommended Posts:

    C#
        1. C# Features
        2. Difference Between C++ and C#
        3. Difference Between C# and Java
        4. .NET Framework
        5. Benefits of .NET
        6. C# Program Structure
        7. C# Command Line Arguments
        8. Console.ReadLine() and Console.WriteLine()
        9. C# Literals
        10. C# Data Types
        11. Scope of Variables in C#
        12. Boxing and Unboxing in C#
        13. C# Operators
        14. C# Type Casting