Difference between C# and C++
1.Classes in C# are defined and implemented at the same place and so there is no need for using header files like as c++.
2. C# does not use header files as it compiles directly from the source code to the executable code.
3.C# does not use semicolon and the end of class definition.
4.C# does not support pointers for manipulating data. However they are used in codes declared as unsafe.
6.Abstract methods of C# cannot be implemented.
7.C# does not support multiple inheritance.
Behavior of the command line argument is different in C# as compared to C++.
8. Declaration of array is different in c# as compared to C++.Arrays in C# are of reference type while C++ arrays are value type.
9.C# does not support the header file,#include.
10.C# does not support default arguments.
11. C# allows the switch statement to be used with string values.
12. C# supports native Boolean type and Boolean type data can be implicitly or explicitly cast any data type except object
No responses found. Be the first to comment...