6 ms·
I sometimes have multiple interfaces and one common implementor, when the same object needs to be passed to different places that need to know about different a
by TeMPOraL 10y ago
I sometimes have multiple interfaces and one common implementor, when the same object needs to be passed to different places that need to know about different aspects of its functionality. I.e. one part fitting multiple sockets.
Having 1:1 mapping between an interface and a concrete class seems kind of pointless to me.