Example #1
0
 public void Quack()
 {
     _quackBehavior.PerformQuack();
 }
Example #2
0
 public void PerformQuack()
 {
     QuackBehavior.PerformQuack();
 }
Example #3
0
 public void PerformQuack() => quackBehavior.PerformQuack(); //Delegate to the behavior class
Example #4
0
 public void PerformQuack()
 {
     _quack.PerformQuack();
 }