public object Clone() { ResumeDeep resume = new ResumeDeep(work); resume.name = name; resume.sex = sex; resume.age = age; return(resume); }
public static void DemoDeep() { ResumeDeep resume = new ResumeDeep("黄小华"); resume.setPersonInfo("男", "20"); resume.setWorkExperience("2017-2020", "江西师范大学"); ResumeDeep resume1 = (ResumeDeep)resume.Clone(); resume1.setWorkExperience("2013-2017", "临川一中"); resume.Display(); Console.WriteLine("--------"); resume1.Display(); }