Q. What will be the output?
Code:
interface A { public function test(); }
class B implements A { public function test() { echo 'OK'; } }
(new B())->test();
β
Correct Answer: (A)
OK
Explanation: Class implements interface method.