Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Resume  resume  = new Resume(10, "王强");
            Company company = new Company("真善美公司", 123456789);

            resume.SetCompany(company);
            resume.Printf();


            Resume  resumeColne = (Resume)resume.Clone();
            Company company2    = new Company("真善美公司", 15154);

            resumeColne.SetCompany(company2);
            resumeColne.Printf();


            Console.ReadLine();
        }