Difference between C++ and C#.net

Answer Posted / monu sharma

C# is a distinct language from C++. C++ is designed for
general object oriented programming in the days when the
typical computer was a standalone machine running a command
line-based user interface. C++ is a general-purpose
programming language with high-level and low-level
capabilities. It is a statically typed, free-form,
multi-paradigm, usually compiled language supporting
procedural programming, data abstraction, object-oriented
programming, and generic programming.

C# is a simple, modern, object oriented, and type-safe
programming language derived from C and C++. C# (pronounced
C sharp) is firmly planted in the C and C++ family tree of
languages, and will immediately be familiar to C and C++
programmers. C# aims to combine the high productivity of
Visual Basic and the raw power of C++.



However it is also undeniable that the two languages are
very similar in both their syntax and in that they are both
designed to facilitate the same paradigm of programming, in
which code is based around hierarchies of inherited classes.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how dot net compiled code will become platform independent?

725


What is the difference between virtual method and abstract method?

732


Why is it not a good idea to use empty destructors?

740


Can arraylist store different data types in c#?

668


What is the and operator in c#?

701


What is difference between for and foreach in c#?

641


What is anonymous types in c#?

680


What is the use of return in c#?

688


What is difference between throw and throws in c#?

627


What is xml serialization in c#?

648


What is boolean conditions in c#?

685


What are get and set in c#?

752


What is inumerable?

742


Can you use all access modifiers for all types?

725


What are the two uses of a ‘using’ statement in c#?

662