i have seen many developers using method local class
(i don't mean anonymous class) in their code.
for example (in android):
private void myFunc()
{
class Worker extends AsyncTask<Void, Void, Void>
{...}
new Worker();
}
what are the pros and cons when doing this for both design and run time? is it bad to use local class when the method is called many times?