Esempio n. 1
0
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");
            //Constructor1 c1 = new Constructor1();
            //c1.details();
            //Constructor1 c2 = new Constructor1(1, "vamshi", "cognine kavuri hills");
            //c2.test(200);
            Constructor1 t  = new Constructor1(1);
            Constructor1 t1 = new Constructor1(t);

            StaticC.somest();
        }
Esempio n. 2
0
 public Constructor1(Constructor1 tempo)
 {
     this.eid   = tempo.eid;
     this.ename = tempo.ename;
     Console.WriteLine($"this is copy constructor {eid} ,{ename}");
 }