patterns/templatemethod/barista/tea.d

18 lines
254 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
module tea;
import std.stdio : writeln;
import caffeinebeverage;
class Tea : CaffeineBeverage
{
override void brew()
{
writeln("Steeping the tea");
}
override void addCondiments()
{
writeln("Adding Lemon");
}
}