Guitar implements IMusician interface
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
by Valeri Tandilashvili
4 years ago
PHP
OOP
1
Pro tip: use ```triple backticks around text``` to write in code fences