| 1 | package BehaviouralDesignPatterns.CommandDesignPattern.WithoutCommandDesignPattern; |
| 2 | |
| 3 | public class Bulb { |
| 4 | boolean isOn; |
| 5 | |
| 6 | public void turnOnBulb(){ |
| 7 | isOn = true; |
| 8 | System.out.println("Bulb is ON now"); |
| 9 | } |
| 10 | |
| 11 | public void turnOffBulb(){ |
| 12 | isOn = false; |
| 13 | System.out.println("Bulb is OFF now"); |
| 14 | } |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected