public class Test {
private static class hh1{
private static hh1 getHhua()
{
return new hh1();
}
private static void test()
{
hh.getHhua();
}
}
private static class hh{
private static hh getHhua()
{
return new hh();
}
}
}
在hh1的test方法中,为何可以访问hh中的gethhua方法?这是一个private的方法啊?