public Duck(ISoundBehaviour soundBehaviour) { SoundBehaviour = soundBehaviour; }
public QuackSoundDecorator(ISoundBehaviour soundBehaviour) : base(soundBehaviour) { }
protected SoundBehaviourDecorator(ISoundBehaviour soundBehaviour) { _soundBehaviour = soundBehaviour; }
protected Duck(IFlyBehaviour flyBehaviour, ISoundBehaviour soundBehaviour) { FlyBehaviour = flyBehaviour; SoundBehaviour = soundBehaviour; }
public SqueakSoundDecorator(ISoundBehaviour soundBehaviour) : base(soundBehaviour) { }
public void setSoundBehaviour(ISoundBehaviour newsound) { this.sound = newsound; }