posted 23 years ago
Because the syntax doesn't support it.
If you make an anonymous class you say
new InterfaceName(){ . . .};
or
new ClassName(){. . .};
in order to do BOTH you have to stuff 2 names in the new statement.
"JavaRanch, where the deer and the Certified play" - David O'Meara