How can I access the mothods of an inner class?
suppse I have:
how do I create an instance of b()?Code:public class a()
{
public class b()
{
public void method()
{
}
}
}
When I do create an instance of class b() I simply have
(yes its an array)Code:a.b[] abc = new a.b[5]
However when I try to initialize it with
it doesn't work and it gives me the following error:Code:abc[0] = new a.b()
whats that supposed to mean?Quote:
an enclosing instance that contains a.b is recquired
