Tag:ship

  • Design pattern – abstract factory pattern

    Time:2021-12-28

    Abstract factories can beFactory method modelCome up and understand   Factory method modelYesSimple factoryFurther optimization of First, if or case statements inside the simple factory pattern do not meet the open closed principle Therefore, the simple factory mode is further optimized, and the factory method mode appears. The factory method pattern abstracts and instantiates factories […]