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 mentionedThe question was posed to me by my school principal while I was bunking the class.The doubt is from Interfaces topic in portion Interfaces & Packages of Java |
|
Answer» The correct answer is (B) class B IMPLEMENTS A{} |
|