Simplicity
All
the Syntax of java is like C++. There is no preprocessor and much larger
library. C# code does not require header files. All code is written inline.
Consistent
Behavior
C#
introduced a unified type system which eliminates the problem of varying ranges
of integer types. All types are treated as objects and developers can extend
the type system simply and easily.
Modern
Programming Language
C#
supports number of modem features, such as:
•
Automatic Garbage Collection
•
Error handling features
•
Modern debugging features
•
Robust Security features
Pure
Object-Oriented Programming Language
In
C#, everything is an object. There are no more global functions, variable and
constants. It supports all three object oriented features:
•
Encapsulation
•
Inheritance
•
Polymorphism
Type
Safety
Type
safety promotes robust programming. Some examples of type safety are:
•
All objects and arrays are initialized by zero dynamically
•
An error message will be produced, on use of any uninitialized variable
•
Automatic checking of array (out of bound and etc.)
Feature
of Versioning
Making
new versions of software module work with the existing applications is known as
versioning. It is achieved by the keywords new and override.
Compatible
with other Language
C#
enforces the .NET common language specifications (CLS) and therefore allows
interoperation with other .NET language.
Inter-operability
Language
interoperability is the ability of code to interact with code that is written
using a different programming language. Language interoperability can help
maximize code reuse and, therefore, improve the efficiency of the development
process. C# provides support for using COM objects, no matter what language was
used to author them. C# also supports a special feature that enables a program
to call out any native API.
No comments:
Post a Comment