C++ | C# |
---|---|
In C++ programmer have to free the memory. | In C# has Garbage collector which frees the memory |
In C++ multiple inheritance is supported | In C# multiple inheritance is not supported |
In C++ we have pointers which manipulate memory illegally | In C# we access memory legally. |
In C++ access modifiers are public, private and protected. | In C# access modifiers are public, private, protected, Internal and protected internal. |
C++ uses semicolon at the end of class definition. | C# does not use semicolon at the end of class definition. |
C++ supports macros. | C# does not support macros. |
C++ is language not type-safe. | C# is language type-safe. |
C++ code usually compiles to assembly language | C# code usually compiles to intermediate language. |
Friday, January 30, 2015
Difference between C++ and C#
C++ and C# both are object oriented languages. Lets check out the main difference between them:-
Subscribe to:
Post Comments (Atom)
That's awesome.. I was looking for this from last 23 years.. You saved me man, Thanks a lot ;)
ReplyDeleteThanks
DeleteThis comment has been removed by the author.
Delete