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


enter image description here

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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -