public class Leaf {
int i=0;
Leaf inc()
{
i++;
return this;
}
void print()
{
System.out.println("i="+i);
}

public static void main(String[] args) {
Leaf x= new Leaf();
x.inc().inc().inc().print();
}
}
这个程序中 Leaf inc()
{
i++;
return this;
}
什么意识阿? 方法体的话不是需要声明返回类型吗,可这个是(类名 方法名)
应该怎么理解阿 ?