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/command/simpleremotecontrol/garagedoor.d

32 lines
451 B
D

module command.simpleremotecontrol.garagedoor;
import std.stdio : writeln;
class GarageDoor
{
void up()
{
writeln("Garage Door is Open");
}
void down()
{
writeln("Garage Door is Closed");
}
void stop()
{
writeln("Garage Door is Stopped");
}
void lightOn()
{
writeln("Garage light is on");
}
void lightOff()
{
writeln("Garage light is off");
}
}