Source
import MallardDuck from './MallardDuck';
import RedheadDuck from './RedheadDuck';
import RubberDuck from './RubberDuck';
import DecoyDuck from './DecoyDuck';
var mallard = new MallardDuck();
var redhead = new RedheadDuck();
var rubber = new RubberDuck();
var decoy = new DecoyDuck();
mallard.quack();
mallard.swim();
mallard.fly();
mallard.display();
redhead.quack();
redhead.swim();
redhead.fly();
redhead.display();
rubber.quack();
rubber.swim();
rubber.fly();
rubber.display();
decoy.quack();
decoy.swim();
decoy.fly();
decoy.display();