static void Main(string[] arg) { ConcretePrototype c1 = new ConcretePrototype("zhangxu"); ConcretePrototype p1 = (ConcretePrototype)c1.Clone(); p1.fun(); }
public object Clone() { ConcretePrototype c = new ConcretePrototype(this.call); c.id = this.id; return(c); }