what's the benefit of defining some class inside a method?
<p>Is there any benefit to define a class inside a method. I saw someone prefer to define some listener class inside a method, any real benefit to do this?</p>
