How C# Differ From C++????
As started earlier ,C# was derived from C++ to make it the language of choice for C and C++ programmers.C# therefor shares major parts of syntax with c++ .However ,the C# designers introduced a few changes in the syntax of C++ and removed a few feature to reduce the common pitfalls that occurred in C++ program development . They also added a number of additional features to make C# a type safe and web-enabled language...
Some Point hare:->
As started earlier ,C# was derived from C++ to make it the language of choice for C and C++ programmers.C# therefor shares major parts of syntax with c++ .However ,the C# designers introduced a few changes in the syntax of C++ and removed a few feature to reduce the common pitfalls that occurred in C++ program development . They also added a number of additional features to make C# a type safe and web-enabled language...
Some Point hare:->
- C# compiles straight from source code to executable code,with no object file.
- In c# class definition does not use a semicolon at the end.
- c# does not support #include statement.
- c# checks for uninitialized variable and gives error messages at compile time .In c++ an uninitialized variable goes undetected thus resulting in unpredictable output.
- c# does not support pointer types for manipulating data.
- We can only create object in C# using the new keyword.
- In c# switch can also be used on string value.
- C# does not support multiple code inheritance
- When overloading a virtual method ,we must use the override keyword.
- C# does not support default argument.
How C# Differ from Java????
Like c#, Java was also derived from C++ and therefor they have similar roots.Moreover C# was developed by Microsoft as an alternative to Java for web programming .C# has borrowed many good feature from Java which has already become a popular internet language.There is exist a number of differences between C# and Java .
Some Point hare:->
- although c# uses .Net runtime that is similar to Java runtime ,the c#compiler produces an executable code.
- C# has more primitive data type.
- Unlike Java all c# data type are object.
- Array are declared differently in C#.
- c# support the struct type ans Java does not.
- Java does not provide for operator overloading.
- C# provides static constructors for initialization.
- in Java the switch statement can have only integer expression,while C# support either an integer or string expressions.
- C# allows a variable number of parameter using the params keyword .
- c# check overflows using checked statements.
Now you can download the pdf file of this article by just click on the below download link...
I hope this post will help you !!
If still you have some query regarding to this article then please post your comment after that i will 100 % reply back you..
0 comments:
Post a Comment
Hey thanax alot to comment i will revert you back soon...