4
Differences Between C# and C++
·In C# there are no global functions.  Everything is a class.
–Main(string args[]) is a static member function of a class.
·The C# class libraries are like Java Packages, not like the C and C++ Standard Libraries.
–System, System.Drawing, System.Runtime.Remoting, System.Text, System.Web
–C# class hierarchy is rooted in a single “Object” class
·C# does not separate class declaration and member function definitions.
–Every function definition is inline in the class declaration – like the Java structure.
–There are no header files.
–Instead of #include, C# uses using statements:
•using System;
•using System.ComponentModel;