Answer
![Anpanman](https://data3.answerbase.com/answerbase/1720/UserFiles/User27949/profileImage27949.jpg?632891489730000000)
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![Sending...](https://quomon.com/images/loading-boxes.gif)