public class Outer
{
Grid g=new Grid();
public class Inner
{
// how do I call a grid class function from this inner class?
}
}
public class Grid
{
Grid(){}
void up(){}
}
答案 0 :(得分:2)
public class Outer
{
Grid g=new Grid();
public class Inner
{
public void callG()
{
g.up();
}
}
}