Comparisons between C++ and C#

Last Updated :

1. C++ Programming Language :
C++, as we all know is an extension to C language and was developed by Bjarne stroustrup at bell labs. C++ is an Object Oriented Programming language but is not purely Object Oriented. The language was updated 3 major times in 2011, 2014, and 2017 to C++11, C++14, and C++17. C++ can be found in today’s operating systems, Graphical User Interfaces, and embedded systems.

1. C# Programming Language :
C# is pronounced “C-Sharp”. It is an object-oriented programming language created by Microsoft that runs on the . NET Framework. C# has roots from the C family, and the language is close to other popular languages like C++ and Java. The first version was released in year 2002.



These are various comparisons between C++ and C# :

S.No. C++ C#
1. In 1979, Bjarne Stroustrup, a Danish computer scientist, began work on “C with Classes”, the predecessor to C++ and developed C++ . It is developed by Anders Hejlsberg in 1999.It is pronounced as “C sharp”.It is a general-purpose, object-oriented programming language and , imperative, declarative, functional, generic,and component-oriented programming disciplines.It is provided by Microsoft that run on .Net framework.
2. C++ is a general-purpose object oriented case sensitive language. It is a general-purpose, object-oriented programming language and, imperative, declarative, functional, generic,and component-oriented programming disciplines.
3. C++ is a programming language that runs on all platforms. C# is a programming language that may be seldomly used outside Windows.
4. C++ programming can be used to create console applications. C# programming can be used to create console applications, Windows applications, Mobile applications.
5. In C++ mulitples inheritance is supported,like a single class will inherit multiple class simultaneously. It doesn’t support multiple inheritance,Because In c# does not support multiple inheritance because of ambiguity derived class isn’t inherited multiple classes.Derives class will not identify which methods i inherited.
6. In C++, Memory management is done manually. In C#, memory management is handled automatically.
7. In, C++ Pointer use can be use anywhere in the program. In C#, pointers is used only in unsafe mode.
8. In C++, we manage class on the class and object basis.it also support late binding, early binding, polymorphism etc. C# programming is based on Component and Oops concept.We studied that component architecture is compatible with object oriented.



Please write comments if you find anything incorrect. A gentle request to share this topic on your social media profile.

Comment
Next Article
CPP_Programmer Published 12 Aug, 2020 · 2 min read
Article Tags :

Similar Reads

  • Four Pillars of Object-Oriented Programming (OOPS)

    Get an overview of four pillars of object-oriented programming (OOP) and see their suitable real life examples. What is OOP? Picture a cluttered garage🛠️. Tools are scattered everywhere,…

    4 min read
  • What is Overriding in C++

    Write a program in C++ to depict the concept of overriding or Dynamic polymorphism. Overriding is a type of polymorphism. Polymorphism in OOP languages means to take more…

    2 min read
  • What should we use void main() or int main() ?

    There is question that what should we use void main() or int main() ? void main() { /* ... */ } Or, int main() { /* ... */…

    2 min read
  • Difference between Full Virtualization and Para-virtualization

    Process of abstracting underlying hardware components from software is the primary concept behind virtualization. 1. Full Virtualization In full virtualization, a single host operating system allows the execution…

    2 min read
  • Difference between COM and DCOM

    COM :- COM stands for Component Object Model.The COM is a software architecture that allows application to be built from binary software component. It is introduced in 1993…

    2 min read
  • Difference between Firewall and Proxy Server

    Both firewall and thee proxy are resided between the local system and the internet to provide security against the network threats. 1. Firewall: A firewall is an application…

    2 min read