patterns/facade/hometheater/screen.d

29 lines
400 B
D
Raw Permalink Normal View History

2022-12-05 07:38:19 +00:00
module screen;
import std.stdio : writeln;
class Screen
{
private string description;
this(string description)
{
this.description = description;
}
void up()
{
writeln(description ~ " going up");
}
void down()
{
writeln(description ~ " going down");
}
override string toString() const
{
return description;
}
}