4 ms·
Arguably it's the strategy pattern. Graphite and Diamond are subclasses of CrystalizationStrategy.
by adrianmonk 6y ago
Arguably it's the strategy pattern. Graphite and Diamond are subclasses of CrystalizationStrategy.
- iainmerrick 6y agoThings could get messy real fast if you need to inherit from both Graphite and Diamond...
- chrisweekly 6y agoFavor composition over inheritance!
- frumiousirc 6y agoYes, the diamond inheritance pattern is a classic OO problem. :D