Diffrence between C# and C++


C and C++ have been widely used for the past few years for development scientific and business applications. C and C++ languages has disadvantages like high complexity, long cycle time. C# was developed for make web development easy. C# was developed by Microsoft to mainly Support the feature provided by .Net framework. Find difference between Diffrence between C# and C++

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


Comments

No responses found. Be the first to comment...