设计模式--蝇量模式(享元模式)

              设计模式--蝇量模式   •蝇量模式原理 •景观设计软件项目遇到的问题 树:XY坐标,树的大小,外观,需要很多树 10000000棵树 思考如何设计   传统方式: Tree public class Tree { private int xCoord, yCoord, age; public Tree(int xCoord, int yCoord, int ag
相关文章
相关标签/搜索