Difference between C++ and C#.net

Answers were Sorted based on User's Feedback



Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

Answer / gopal priya bhardwaj

c++ allow multiple inheritance but C# does not support
multiple inheritance

Is This Answer Correct ?    4 Yes 2 No

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Difference between C++ and C#.net..

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

Post New Answer

More C Sharp Interview Questions

What is parse method in c#?

0 Answers  


What is the advantage of singleton class?

0 Answers  


Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?

0 Answers   Siebel,


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..

1 Answers  


Does c# support multiple inheritance (mi)?

0 Answers  


Hi all,I am the beginner. Please tell use of finally block.

6 Answers   IBM,


What is javascriptserializer c#?

0 Answers  


What is a c# delegate?

0 Answers  


what happens if you inherit multiple interfaces and they have conflicting method names?

0 Answers   Siebel Systems,


How can I check the type of an object at runtime?

0 Answers  


What is uint64?

0 Answers  


Which .gang of four. Design pattern is shown below?

0 Answers  


Categories