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
The 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