Home / Report Question

Q. 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

Correct Answer: B