Rob Prime wrote:But as Gavin said, you can create anonymous classes that implement one single interface / extend one single (abstract) class.
Yeah. In fact, you
have to create a class that implements them. Raising anonymous inner classes only confuses the issue, since the implementing class is hidden. It may
look like you're creating an instance of the interface, but of course, you're not. The basic simple fact is that you cannot create an instance of an interface or abstract class.