patterns/command/simpleremotecontrol/light.d

17 lines
207 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
module command.simpleremotecontrol.light;
import std.stdio : writeln;
class Light
{
void on()
{
writeln("Light is On");
}
void off()
{
writeln("Light is Off");
}
}