3 ms·
That's also been my experience. I've also seen programmers use composition and delegation solely to avoid inheritance (in a language that makes it natural), an
by cout 5y ago
That's also been my experience. I've also seen programmers use composition and delegation solely to avoid inheritance (in a language that makes it natural), and the result is often less maintainable than a design that just uses inheritance.