This repository has been archived on 2022-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
patterns/strategy/app.d

15 lines
234 B
D
Raw Normal View History

2022-11-09 21:22:13 +00:00
module strategy.app;
import strategy.duck;
void main()
{
Duck mallard = new MallardDuck;
mallard.performQuack();
mallard.performFly();
Duck model = new ModelDuck;
model.performQuack();
model.performFly();
}