InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is the correct way of implementing an interface A by class B?(a) class B extends A{}(b) class B implements A{}(c) class B imports A{}(d) None of the mentioned |
|
Answer» The correct answer is (b) class B implements A{} Easiest explanation: Concrete class implements an interface. They can be instantiated. |
|