This repository has been archived on 2022-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
patterns/facade/hometheater/screen.d

29 lines
400 B
D
Raw Normal View History

2022-11-16 13:43:46 +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;
}
}