Difference between C++ and C#.net
Answers were Sorted based on User's Feedback
Answer / azzy
first and foremost, C++ is a three character word and C# is two character word :D :D :D :P
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sanjana
-->C++ programs are saved as with .cpp extension while
C# programs are saved as with .cs extension.
--> C++ programs are compiled with
cc filename.cpp
and
C# programs are compiled with
csc filename.cs
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / gopal priya bhardwaj
c++ allow multiple inheritance but C# does not support
multiple inheritance
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / 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 |
Answer / varun
c++ was older version while c# is obtained by merging features of c++ and java
Is This Answer Correct ? | 15 Yes | 16 No |
Answer / rajesh
C++ uses Object oriented concepts for their programming
where C# is pure object oriented language.One point that
support the above statement is
where as c++ supports multiple inheritance while C#
only single inheritance.
One feature of OOPs language is "Supporting Single
Inheritance"
Is This Answer Correct ? | 6 Yes | 7 No |
Answer / jana
c++ is object oriented language c++does not support the gui
features
c# is pure object oriented language and it support the gui
features
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sivaraman.s
Default access Specifier is Public in c++.
Default access Specifier is Private in c#.net.
Is This Answer Correct ? | 36 Yes | 55 No |
Answer / basveshwar
C++ uses the "include" header files where as c# uses the
namespaces,
C++ runs for assmebly languages
where as c# runs in .net framework,
Pointers can be used anywhere in c++
but in c# pointers are used only in unsafe mode.
C++ does not support the multiple inheritance,c# support
mulutiple inheritance.
Is This Answer Correct ? | 12 Yes | 41 No |
What is parse method in c#?
What is the advantage of singleton class?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
Hai, I want to open a new form while the previous form is hiding or closing. I tried this with using MDI.I created one form like ParentForm.placed one button control.when clicked one that it opend new form like ChildForm.When i set the property of ChildForm to Maximize,but the ParentForm button control also appearing on the childform. so plz help me how to hide parentform controls(hide parentform while it is childform opened) thanq..
Does c# support multiple inheritance (mi)?
Hi all,I am the beginner. Please tell use of finally block.
What is javascriptserializer c#?
What is a c# delegate?
what happens if you inherit multiple interfaces and they have conflicting method names?
How can I check the type of an object at runtime?
What is uint64?
Which .gang of four. Design pattern is shown below?