View Single Post
  #1 (permalink)  
Old September 2nd, 2005, 03:09 PM
mysticav mysticav is offline
Registered User
 
Join Date: Sep 2005
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mysticav
Default 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.