举个简单的例子一看就清楚了,如下:
namespace test
{
class Program
{
static void Main(string[] args)
{
Peopele.Eat(1,2);
Peopele Jim = new Peopele();
Jim.Sleep(1,2);
}
}
class Peopele
{
public static void Eat(int a,int b)
{
Console.WriteLine("Eat");
}
public void Sleep(int a,int b)
{
Console.WriteLine("Sleep");
}
}
}