InterviewSolution
Saved Bookmarks
| 1. |
Can An Anonymous Class Implement An Interface And Also Extend A Class At The Same Time? |
|
Answer» No. An anonymous class can EITHER EXTEND a class or implement a single interface. If the anonymous class is extending a class then it automatically BECOMES the implementer of all the interfaces implemented by its SUPERCLASS. No. An anonymous class can either extend a class or implement a single interface. If the anonymous class is extending a class then it automatically becomes the implementer of all the interfaces implemented by its superclass. |
|