patterns/templatemethod/simplebarista/app.d

13 lines
239 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
import std.stdio : writeln;
import coffee, tea;
void main()
{
auto tea = new Tea();
auto coffee = new Coffee();
writeln("Making tea...");
tea.prepareRecipe();
writeln("Making coffee...");
coffee.prepareRecipe();
}