What are the C++ features missing in C#?

CsharpProgrammingServer Side Programming

C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET initiative led by Anders Hejlsberg.

C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.

The following are some of the features of C++ missing in C# −

  • In C#, Multiple Inheritance is not possible, whereas C++ can easily implement Multiple Inheritance.

  • In C++, you need to manage memory manually and must allocate and deallocate memory for your objects.

  • C++ can create standalone applications, whereas C# cannot.

  • The test variable cannot be a string in a switch statement in C#.

  • C++ is a programming language that runs on all platforms, whereas C# is rarely implemented outside Windows.

raja
Published on 10-Aug-2018 11:50:26
Advertisements