17 lines
317 B
D
17 lines
317 B
D
|
module abstractfactory.thincrustdough;
|
||
|
|
||
|
import abstractfactory.dough;
|
||
|
|
||
|
class ThinCrustDough : Dough
|
||
|
{
|
||
|
override string toString() const @safe pure nothrow
|
||
|
{
|
||
|
return "Thin Crust Dough";
|
||
|
}
|
||
|
|
||
|
string opBinary(string op : "~")(string s)
|
||
|
{
|
||
|
return (cast(Object)this).toString() ~ s;
|
||
|
}
|
||
|
}
|