We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478c02a commit 5f93303Copy full SHA for 5f93303
Strategy/4/MallardDuck.js
@@ -1,7 +1,7 @@
1
var MallardDuck = function(){
2
Duck.apply(this);
3
- this.oFlyBehavior = new Quack();
4
- this.oQuackBehavior = new FlyWithWings();
+ this.oFlyBehavior = new FlyWithWings();
+ this.oQuackBehavior = new Quack();
5
};
6
MallardDuck.prototype = new Duck();
7
MallardDuck.prototype.display = function(){
Strategy/4/RedheadDuck.js
var RedheadDuck = function(){
RedheadDuck.prototype = new Duck();
RedheadDuck.prototype.display = function(){
0 commit comments