Exemple #1
0
 public CopyConstructor(CopyConstructor obj)
 {
     this.EmpID    = obj.EmpID;
     this.EmpName  = obj.EmpName;
     this.EmpPlace = obj.EmpPlace;
     this.EmpAge   = obj.EmpAge;
 }
Exemple #2
0
        static void Main(string[] args)
        {
            CopyConstructor cc  = new CopyConstructor();
            CopyConstructor cc1 = new CopyConstructor(cc);

            cc.display();
            Console.WriteLine("                   ");
            Console.WriteLine("Copy coustructor results");
            cc1.display();
            Console.Read();
        }