Home > Back-end >  The factory class of design patterns
The factory class of design patterns

Time:09-26

Looking at the design patterns, see the factory class there said "can maintain a registration form, the string maps to a factory object, it allows you to change existing code can register new factory subclass instance, while the previous methods require you to change the code," don't quite understand this said, the method of registration form of beg god to explain...

CodePudding user response:

Is a function mapping table similar to the switch
  • Related