Some differences between C# and C++
C# does not have any pointers.
C# does not have operator overloading.
C# has automatic garbage collection like java.
In C# struct is a value type and class is a reference type. ie; stucts cannot be treated like classes like they can in C++.
C# does not have operator overloading.
C# has automatic garbage collection like java.
In C# struct is a value type and class is a reference type. ie; stucts cannot be treated like classes like they can in C++.

2 Comments:
C# doesn't have multiple inheritance.
C++ has multiple inheritance and therefore virtual inheritance.
C# uses delegates for function pointers (broadcasts to all functions that use the delegate).
C# 2.0 now uses templates like C++.
C# has pointer if you use unmanaged code.
Post a Comment
<< Home