Assertion: command | /r/HasProperty | public icommand
Facets:
Source sentences:
text: << std :: endl ; } }; // The Command for turning on the light - ConcreteCommand #1 class FlipUpCommand : public ICommand { public : FlipUpCommand
text: light_ ( light ) { assert ( light_ ); } void Execute () { light_ -> TurnOn (); } private : Light * light_ ; }; // The Command for turning off the light - ConcreteCommand #2 class FlipDownCommand : public ICommand { public :