Originally posted by Kasey Tritt:
Does anyone know the term "a class defined within a method" refers to a local class or anonymous class or both?
A class defined within a method could be either a local class or an anonymous class. Here is an example where one of each is defined within a method:
You see, both local classes and anonymous classes can be defined within a method. However, in general, when someone is referring to a class defined within a method, I would presume their talking about a local class, which is the first example.
I hope that helps,
Corey