What is C# - and its features


What is c# (C Sharp)


C# is new computer programming language which is simple because it based on C++ and Java, which is developed by Microsoft Corporation and submitted to the ECMA for standardization and announced to the public in June 2000 with the introduction of .NET.

C# is the only language designed for the .Net Framework.

C# is a fully object-oriented language (i.e support all the three tenets of object-oriented systems 1. Encapsulation 2.Inheritance 3. Polymorphism) that means C# code can be reusable, during execution the assembly is loaded into the CLR.

C# has automatic garbage collection and type safety that enables developers to build a variety of secure and robust applications.

C# use to create Windows client applications, XML Web services, distributed components, client‐server applications, database applications and much more.

Evaluation of Csharp (C#)

C# features:-

  • In microsoft c#, everything is an Object.
  • C# syntax improve many of the complexities of C++ and provides powerful features such as nullable value types, enumerations, delegates, lambda expressions and direct memory access, which are not found in Java.
  • C# simplifies c++ by eliminating operator like "->", "::", pointers(*).
  • C# does not support default arguments.
  • C# does not support the typed of statement.
  • In C#, structs are of value type.
  • C# does not separate class definition from implementation, classes are define and implemented in the same place and therefor there is no need for header file.
  • In C#, Data Types belong to either value type (which is created in the stack) or reference type(which are created in the heap).
  • All the data types in C# are inherited from the object super class, therefore all data type are object type.
  • Abstract of C# cannot be implemented.
  • In C#, a class can inherit implementation from one base class only.
  • In C#, a class or an interface can implement multiple interfaces.
  • Using the new modifier to explicitly hide an inherited member.
  • Calling the overridden base class members from derived classes.
  • C# supports additional c# operators such as "is" and "typeof".
  • In C# use of the extern keyword.
  • It has a huge standard library which is easy to use.
  • It allows for both managed and native code blocks.
  • C# declare null as keyword.
  • We can create object in c# using "new" keyword.
  • C# does not provide any defaults for constructors.
  • In C#, can't access static member via an objects.

0 comments:

Post a Comment