Answer

Dec 23, 2008 - 11:17 PM
You can declare a static method on a class and then call it without having to initialize the class.
For example:
public class Global
{
public static string GetHello()
{
return "Hello";
}
}
You call it like this:
Global.GetHello();
For example:
public class Global
{
public static string GetHello()
{
return "Hello";
}
}
You call it like this:
Global.GetHello();
Add New Comment