Exemplo n.º 1
0
 public Duck(ISoundBehaviour soundBehaviour)
 {
     SoundBehaviour = soundBehaviour;
 }
 public QuackSoundDecorator(ISoundBehaviour soundBehaviour) : base(soundBehaviour)
 {
 }
Exemplo n.º 3
0
 protected SoundBehaviourDecorator(ISoundBehaviour soundBehaviour)
 {
     _soundBehaviour = soundBehaviour;
 }
Exemplo n.º 4
0
 protected Duck(IFlyBehaviour flyBehaviour, ISoundBehaviour soundBehaviour)
 {
     FlyBehaviour   = flyBehaviour;
     SoundBehaviour = soundBehaviour;
 }
Exemplo n.º 5
0
 public SqueakSoundDecorator(ISoundBehaviour soundBehaviour) : base(soundBehaviour)
 {
 }
Exemplo n.º 6
0
 public void setSoundBehaviour(ISoundBehaviour newsound)
 {
     this.sound = newsound;
 }