On 12 Dez., 12:50, Casper Bang <[email protected]> wrote: > If you've studied OO or design patterns, you will undoubtedly have > heard about the open closed principle (OTC). This is what I believe > Steve McConnel is referring > to:http://en.wikipedia.org/wiki/Open/closed_principle
Thanks Caspar. So this would mean int holidays(Employee emp) could be "extended" by introducing another implementation of the containing class which could take into account different parameters than another implementation. I wouldn't have to "modifiy" the interface, which I would have to if the method took each single parameter as arguments. On the other hand this couples clients to the Employee class. Is the answer once again "it depends."? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
