3 ms·
I think even the visitor pattern isn't required here, all you need is subclassing. Although this clutters things up more by having abstract methods in the base
by platz 13y ago
I think even the visitor pattern isn't required here, all you need is subclassing. Although this clutters things up more by having abstract methods in the base class, technically that's all you need.
- SamReidHughes 13y agoSure.