Microsoft created a variant of C++ called C# (“C-sharp”) that includes some Java-like features.
- Windows API: Unlike C++ and Java, C# makes use of the Windows API. This lets it interact extensively with the Windows operating system and Windows applications. For example, a program written in C# can include Microsoft Excel in its processing of server requests. (This is also possible with any ASP.NET language.)
- C++ and Java are powerful, elegant, portable, cross-platform languages. For applications that don’t use the Windows API, C# isn’t bad—but it offers no real advantage over C++ or Java.
C# is best used when creating high-performance, high-volume applications that run on Windows servers and require access to .NET functionality.