in reply to Re: When to use prototype inheritence?
in thread When to use prototype inheritence?
The good fit would be because the class is small and belongs only in the context of it's definition. That is, within the main class.
What's more, the returned class can be more dynamic than the Java version. Response to different interfaces, different methods, etc.
There's an alternative version of Inner Classes at http://perldesignpatterns.com/
|
|---|