PHP - Interfaces and Traits
What will be the output of this PHP code?
interface Animal {
public function sound();
}
class Dog implements Animal {
public function sound() {
return "Bark";
}
}
$dog = new Dog();
echo $dog->sound();