patterns/templatemethod/barista/coffee.d

18 lines
283 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
module coffee;
import std.stdio : writeln;
import caffeinebeverage;
class Coffee : CaffeineBeverage
{
override void brew()
{
writeln("Dripping Coffee through filter");
}
override void addCondiments()
{
writeln("Adding Sugar and Milk");
}
}