PHP - Interfaces and Traits
Identify the error in this PHP code:
trait Sample { public function test() { return "test"; } } class Demo { use Sample } $obj = new Demo(); echo $obj->test();