Can an anonymous class implement multiple interfaces directly?
No. An anonymous class can implement only one interface. If the anonymous class is extending a class then it becomes the implementer of all the interfaces implemented by its superclass automatically.
No comments:
Post a Comment