3 ms·
I've hardly ever found a good reason to inherit functionality - plain old data objects yes, but I always favor aggregation over inheritance. When it comes to i
by scarface74 9y ago
I've hardly ever found a good reason to inherit functionality - plain old data objects yes, but I always favor aggregation over inheritance.
When it comes to inheriting a base object to reuse cross cutting concerns, not only do you run into the fragile base class problem - there is usually a better way.
I personally prefer aspect oriented programming when possible.