Code:
using system;
using example.CSharp.Namespaces;
class Myclass
{
static void Main()
{
Myclass c = new Myclass ();
System.Console.WriteLine(c.GetMessage());
}
}
As said in the above post , here system is the namespace being used in the class but it is appended with the Writeline method, if we do not do it then also it will work as we can see that we have mentioned in our program the system namespace. If you do not understand the program you can post back your question again ,I will repeat my instructions.
Bookmarks