java原型模式

Uml图: //抽象原型 public interface Prototype { public Object cloneMe() throws CloneNotSupportedException; } //具体原型: public class Cubic implements Prototype,Cloneable { double length,width,height
相关文章
相关标签/搜索