Does the composite design patterm adhere the principles of SOLID (spacialy the L and the I)?

97 Views Asked by At

Does the composite design template adhere to the principles of solid? if all the compositing method are declared at the component its violation of the Interface Segregation Principle. if compositing method are declared at the composite its violation of Liskov Substitution Principle - because we change are behaver when it leaf and when it composite. am i wrong?

0

There are 0 best solutions below