PHP - Interfaces and Traits
What will be the output of this PHP code?
interface A { public function foo(); }
interface B { public function bar(); }
class Test implements A, B {
public function foo() { echo 'foo'; }
public function bar() { echo 'bar'; }
}
$obj = new Test();
$obj->foo(); $obj->bar();