public override void HandleMode(Flashlight flashlight) { flashlight.SetFlashLightState(new Solid()); flashlight.FlashingOn(); }
public virtual void HandleMode(Flashlight flashlight) { // up to the inherited }
public virtual void HandleMode(Flashlight flashlight) { }
public virtual void HandlePower(Flashlight FlashLight) { FlashLight.SetFlashLightState(new Off()); FlashLight.LightOff(); }
public void HandlePower(Flashlight FlashLight) { FlashLight.SetFlashLightState(new Solid()); FlashLight.LightOn(); }