| 3 | //client is handling all of this. |
| 4 | |
| 5 | public class Main { |
| 6 | public static void main(String[] args) { |
| 7 | AirConditioner ac = new AirConditioner(); |
| 8 | ac.turnOnAc(); |
| 9 | ac.setTemperature(30); |
| 10 | ac.turnOffAc(); |
| 11 | |
| 12 | Bulb b1 = new Bulb(); |
| 13 | b1.turnOnBulb(); |
| 14 | b1.turnOffBulb(); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | //There are multiple problems with this kind of implementation. |
| 19 | // Now, at this moment. turn on ac -> simple, 100 methods runs -> AC turn on. |
nothing calls this directly
no outgoing calls
no test coverage detected