patterns/abstractfactory/thickcrustdough.d

17 lines
342 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
module abstractfactory.thickcrustdough;
import abstractfactory.dough;
class ThinCrustDough : Dough
{
override string toString() const @safe pure nothrow
{
return "ThickCrust style extra thick crust dough";
}
string opBinary(string op : "~")(string s)
{
return (cast(Object)this).toString() ~ s;
}
}