By (over) using non-static inner-classes, I came to the following code:
InnerClass created = outer_class_instance.new InnerClass(...);
The "new" operator is completely misleading: is no method(message) of the OuterClass.
It just couples the creation to the outer_class_instance scope.
strange...
Wednesday, July 12, 2006
Java "new" for non-static iinner classes
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment