WONTFIX
Observations on coding and software engineering.
Wednesday, 4 March 2009
Referencing Enclosing Instance of an Inner Class
When using an inner class how do you reference the enclosing class? The answer is
Object.this
where Object is the class type of the enclosing class. Sweet :)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment