Does the command pattern uses OCP ?In a command patter the invoker is only extensible by actually extending the class. If we want to add custom methods to it, we can make our own sub-class or we could modify the base class's constructor, which violates the open/closed principle.Which leads me to the question, is the command pattern using OCP or not
Command pattern and open-closed-principle
design patterns