You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
First of all thanks for an amazing "refactoring.guru" resource. It's definitely a great contribution to global IT education.
However, I think that this example violates the Liskov substitution principle since the Leaf class does not properly implement Add and Remove methods of the base Component class. As such you had to use IsComposite method and call it in the client code.
The text was updated successfully, but these errors were encountered:
Hi.
First of all thanks for an amazing "refactoring.guru" resource. It's definitely a great contribution to global IT education.
However, I think that this example violates the Liskov substitution principle since the Leaf class does not properly implement Add and Remove methods of the base Component class. As such you had to use IsComposite method and call it in the client code.
The text was updated successfully, but these errors were encountered: