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 |
Hi!!! my question is how we can apply or do Themes in C#.NET? please any sample or website from where i can get the answer.
What is namespace give the example?
In Main function another function is there and to that function if we pass string as parameter ,then that string value is passed by value or reference type?
What is a sealed class?
What is the difference between delegates and superdelegates?
Why can?t you specify the accessibility modifier for methods inside the interface?
Illustrate serialization?
Hi all,I am the beginner. Please tell use of finally block.
What are partial classes and use of partial classes?
Explain ACID rule of thumb for transactions.
What is bit in c#?
What is a event in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)