Constructors of non-stationary member classes accept an additional hidden parameter, which is a reference to an instance of the directly incoming class. There is also a syntax extension for the "new".
In the code below
class K{
static class Ka{
static class Kb{
class Kc{
class Kd{
}
}
}
}
}
class Test{
K.Ka.Kb.Kc.Kd k = new K.Ka.Kb().new Kc().new Kd();
}
Could you help me understand the meaning Kb()of K.Ka.Kb().new Kc().new Kd()? I understand what new Kc()is required, as stated in the first paragraph.
source
share