4 ms·
So stop using constructors and start using static factory methods. The return type of a static factory method can be the interface type.
by wtetzner 11y ago
So stop using constructors and start using static factory methods. The return type of a static factory method can be the interface type.
- nikolay 11y agoYeah, let's UML the hell out of everything to be enterprisey and be Martin Fowler-approved! This is what turned off a lot of people before!