匿名方法简单的说就是没有名字的方法,而通常情况下的方法定义是需要名字的;
public int sum(int a, int b) //创建方法
{
return a + b; //返回值
}
publ