lundi 14 février 2022

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

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?

Aucun commentaire:

Enregistrer un commentaire