Just a nitpick, but you want some *subclass* of' Dog to be an anonymous class. I just want to emphasise the point that anonymous classes have no name, so you can never (reasonably) say "I want...
Type: Posts; User: pbrockway2
Just a nitpick, but you want some *subclass* of' Dog to be an anonymous class. I just want to emphasise the point that anonymous classes have no name, so you can never (reasonably) say "I want...
You can't.
There is nothing to stop an anonymous class extending a "normal" class - like your anonymous class extends Dog - and the anonymous can create some more methods. But, to call those...