3 ms·
One benefit is that you can replace the singleton instance with a mock or subclass for testing if you need to.
by Almaviva 15y ago
One benefit is that you can replace the singleton instance with a mock or subclass for testing if you need to.
3 ms·