Toss out Inheritance Forest
In the previous article, we saw How we can solve the Inheritance forest problem by Decorator pattern,
In case if you missed that Article you can go here::
http://javaonfly.blogspot.in/2017/03/decorator.html
For...
Home » Posts filed under Inheritance forest
Get rid of Inheritance Forest: Part 1
in
code smell,
Decorator,
Decorator pattern,
decorator pattern java,
design pattern,
Inheritance,
Inheritance forest,
interview,
Interview question on Design pattern,
java,
java design pattern
- on March 26, 2017
- No comments

Get rid of Inheritance Forest
While doing code review, I have seen many times that there is a potential danger of creating a lot of inherited classes, meaning a simple change in business requirements may make things unmanageable. So, surely, this...