Example #1
0
        static void  Main(string[] arg)
        {
            ConcretePrototype c1 = new ConcretePrototype("zhangxu");
            ConcretePrototype p1 = (ConcretePrototype)c1.Clone();

            p1.fun();
        }
Example #2
0
        public object Clone()
        {
            ConcretePrototype c = new ConcretePrototype(this.call);

            c.id = this.id;
            return(c);
        }