2 ms·
Is this a different problem from private constructors / setters in OO world?
by closeparen 6y ago
Is this a different problem from private constructors / setters in OO world?
- anonymoushn 6y agoNo, but it's a more prevalent problem in the actual standard library of Go. The Java standard library does not regularly use final classes with private constructors and setters as the parameter and return types in its APIs (which would also prevent people from implementing those APIs). It uses interfaces.