Source
import MallardDuck from '../../common/MallardDuck';
import RedheadDuck from '../../common/RedheadDuck';
import RubberDuck from '../../common/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.display();
decoy.display();