public ClassEmployee3(ClassEmployee3 obj) { this.EmpId = obj.EmpId; this.EName = obj.EName; this.EAddress = obj.EAddress; this.EAge = obj.EAge; }
static void Main(string[] args) { ClassEmployee3 obj = new ClassEmployee3(); ClassEmployee3 obj1 = new ClassEmployee3(obj); obj.DisplayData(); obj1.DisplayData(); Console.Read(); }