()
| 12 | //Step3: Create a static getInstance() method to instantiate the class and also to return an instance of it. |
| 13 | |
| 14 | public static Singleton getInstance(){ |
| 15 | if (uniqueInstance == null){ |
| 16 | uniqueInstance = new Singleton(); |
| 17 | } |
| 18 | return uniqueInstance; |
| 19 | } |
| 20 | |
| 21 | //other useful methods here. |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected