Hello World :)
In Part - I, I tried to explain the very basic "HELLO WORLD" program. In this article, I would use different methods to display "HELLO WORLD" so as to clear some of the OOPS fundamentals. So, without wasting much time, let's go on with it.
EXAMPLE: 1
public class nemesh
{
public static void Main()
{
System.Console.WriteLine("HELLO WORLD");
}
}
EXAMPLE: 2
using system;
public class nemeshc
{
public void nemeshm()
{
Console.WriteLine("HELLO WORLD");
}
public static void Main()
{
nemeshc nem = new nemeshc();
nem.nemeshm();
}
}
EXAMPLE: 3
using system;
public class nemeshc
{
public nemeshc()
{
Console.WriteLine("HELLO WORLD");
}
public static void Main()
{
nemeshc nem = new nemeshc();
}
}
EXAMPLE: 4
using system;
public class nemeshc
{
public static void Main()
{
nemesh1c nem = new nemesh1c();
nem.neme1();
}
}
public class nemesh1c
{
public void neme1()
{
Console.WriteLine("Hello World");
}
}
So folks! How was it? Did you get the things or all went above your head? If you are not able to understand any thing, then please mail me or just create a new thread and leave a message. I would try to explain it more deeply.
In my next article, I would explain to you "The beauty of .NET platform using C# and VB.NET".
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.