Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Resume a = new Resume("大鸟");
            a.SetPersonalInfo("男", "29");
            a.SetWorkExperience("1998-2000", "XX公司");

            Resume b = (Resume)a.Clone();
            b.SetWorkExperience("1998-2006", "YY企业");

            Resume c = (Resume)a.Clone();
            c.SetPersonalInfo("男", "24");

            a.Display();
            b.Display();
            c.Display();

            Console.Read();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //ConcretePrototype p = new ConcretePrototype("I");
            //ConcretePrototype c = (ConcretePrototype)p.Clone();

            Resume a = new Resume("张三");

            a.SetPersonalInfo("男", "23");
            a.SetWorkExperience("2015-2016", "TC");

            Resume b = (Resume)a.Clone();

            b.SetWorkExperience("2016-2017", "DJ");
            a.Display();
            b.Display();

            Console.Read();
        }
        static void Main(string[] args)
        {
            Resume a = new Resume("大鸟");

            a.SetPersonalInfo("男", "29");
            a.SetWorkExperience("1998-2000", "xx公司");

            Resume b = (Resume)a.Clone();

            b.SetWorkExperience("1998-2006", "yy公司");

            Resume c = (Resume)a.Clone();

            c.SetPersonalInfo("男", "24");
            c.SetWorkExperience("1998-2003", "zz公司");

            a.Display();
            b.Display();
            c.Display();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            Resume a = new Resume("大鳥");

            a.SetPersonalInfo("男", "29");
            a.SetWorkExperience("1998-2000", "XX公司");

            Resume b = (Resume)a.Clone();

            b.SetWorkExperience("1998-2006", "YY企業");

            Resume c = (Resume)a.Clone();

            c.SetWorkExperience("1998-2003", "ZZ企業");

            a.Display();
            b.Display();
            c.Display();

            Console.Read();
        }
Exemplo n.º 5
0
        private static void Main(string[] args)
        {
            Resume a = new Resume("大鸟");

            a.SetPersonalInfo("男", "29");
            a.SetWorkExperience("1998-2000", "XX公司");

            Resume b = new Resume("大鸟");

            b.SetPersonalInfo("男", "29");
            b.SetWorkExperience("1998-2000", "XX公司");

            Resume c = new Resume("大鸟");

            c.SetPersonalInfo("男", "29");
            c.SetWorkExperience("1998-2000", "XX公司");

            a.Display();
            b.Display();
            c.Display();

            Console.Read();
        }