interface IMusician {
public function play();
}
class Guitarist implements IMusician {
public function play() {
echo "playin a guitar";
}
}
In this example Guitarist
child class has to define play()
method because the child class implements interface IMusician
that has the method signature