Software Architecture · SOLID Principles
How should composition over inheritance be applied in a production system?
Use inheritance for stable substitutable taxonomies and composition for behavioral variation and runtime assembly.
Use inheritance for stable substitutable taxonomies and composition for behavioral variation and runtime assembly.