/*
Learning C#
by Jesse Liberty
Publisher: O'Reilly
ISBN: 0596003765
*/
using System;
namespace StaticTester
{
// create the class
publicclass StaticTester
{
// Run is an instance method
publicvoid Run()
{
Console.WriteLine("Hello world");
}
// Main is static
staticvoid Main()
{
// create an instance
StaticTester t = new StaticTester();
// invoke the instance method
t.Run();
}
}
}