java - Why can't a static nested class access "this" pointer of outer class? -

the thing bothers me second point.
i thought might have fact "this" pointer isn't static , inner class can't access it. i'm not sure if that's right explanation though.
this raised question me "where "this" pointer defined?"
the difference between static nested class , 1 isn't static precisely instance of non-static inner class associated specific instance of enclosing class, while static inner class isn't. there is no a.this instance of static inner class associated with.
Comments
Post a Comment