I do not know exactly what you are working with, so I cannot advice you to drop what you are doing and use composition instead. More often than not, this is done due to a misinterpretation of the advice that said "favor composition over inheritance" as if it said "use only composition, never use inheritance". The approach that most Java shops follow is to avoid inheritance, because it is too complicated, and use composition instead, which also results in lots and lots of mindless code having to be written. it lies so far in the future!) Composition (And having to maintain all that code never seems to be much of a problem because. Most developers refrain from thinking, and just write lots and lots of mindless code because this is the path that they know will work, no thinking necessary. First of all, let me say that it is very good when a (by their own admission) novice developer is concerned about issues of this kind.
0 Comments
Leave a Reply. |