4
votes
Accepted
Is it bad practice to have too many direct subclasses?
I don't think the number of descendants (in itself) is necessarily a problem.
But I question whether inheritance is likely an ideal way to implement this behavior anyway.
By putting the undo/redo at ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
object-oriented-design × 1606design-patterns × 559
object-oriented × 473
design × 407
java × 228
c# × 174
domain-driven-design × 96
architecture × 94
c++ × 89
class-design × 85
inheritance × 82
interfaces × 68
python × 51
solid × 51
php × 48
programming-practices × 35
single-responsibility × 34
dependency-injection × 32
refactoring × 28
domain-model × 28
api-design × 27
mvc × 27
encapsulation × 27
uml × 25
database-design × 24