About the musician exercise
I was reading that the interface methods must mention explicitly the parameters like this:
public function addInstrument(Instrument $instrument);
but in the book they just put this:
public function addInstrument();
I'm new to interfaces, and I know a little about basic OOP. So, I don't want to be confused at this stage.
|