Inheritance is evil!
Read OriginalThe article critiques the use of inheritance in object-oriented programming, arguing it forces rigid 'is-a' relationships that often cause design problems. It suggests that most 'is-a' relationships should be re-articulated as more flexible 'has-a' relationships using composition. The author recommends favoring composition and design patterns like the Strategy pattern over classical inheritance for better software design.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser