Most of the time, using inheritance is a bad object oriented design in the long run. It reduces reusability and testability of code. Consider using interfaces instead. See No, inheritance is not the way to achieve code reuse!. Related; Avoid introducing an interface until you are comfortable in your domain. "Premature interfacing" can also lead to design issues down the road. Deep nested code (both intra-function and inter-function) is 1) harder...

Blog Archive

Total Pageviews

Popular Posts