The basic rule for a factory pattern is that the factory should create an instance of an object with a known ancestor, and an unknown implementation behind.

 
  • 工厂模式的基本规则是工厂必须使用一个已知的祖先(类)来创建一个对象的实例,而后是(对这个对象)未知的实现。
今日热词
目录 附录 查词历史