This real-world code demonstrates the Flyweight pattern in which a relatively small number of Character objects is shared many times by a document that has potentially many characters.

 
  • 外部对象最为参数传递给对象(例如在显示的时候,将字体、大小等信息传递给对象)。
今日热词
目录 附录 查词历史