InterviewSolution
Saved Bookmarks
| 1. |
which two code fragments inserted at end of the program, will allow to compile? |
| Answer» (3) are (5) are correct because interfaces and abstract classes do not need to fully implement the interfaces they extend or implement (respectively). (1) is incorrect because a class cannot extend an interface. (2) is incorrect because an interface cannot implement anything. (4) is incorrect because the method being implemented is from the wrong interface. | |