Saturday, July 5, 2008

Why is Inheritance evil ?

"Favor composition over inheritance"...this is one of the principles suggested in one of the very popular books on design patterns. I have been thinking a lot about it and lets see with an example what are the problems that arise because of 'incorrect or overuse' of inheritance.

Rather than just taking the principle blindly, I would try to analyze why does the book say so

No comments:

Post a Comment