3 ms·
I usually agree but sometimes you want to reduce the exposure of the public methods of the concrete class even if there's only one concrete implementer. For ex
by jayd16 5y ago
I usually agree but sometimes you want to reduce the exposure of the public methods of the concrete class even if there's only one concrete implementer.
For example, you might want to pass around a class and only expose the getters and not the setters.