Esempio n. 1
0
        static void Main(string[] args)
        {
            //MyCustomer c1 = new MyCustomer()
            //{
            //     ID = 12345
            //};
            //c1.Print1();

            //Console.WriteLine(c1.ID);

            //var i = null;
            //var j;
            //j = 10;


            ICustomer1 IC1 = new MyCustomer();

            IC1.Print1();
            ICustomer2 IC2 = new MyCustomer();

            IC2.Print1();
            Console.WriteLine(IC1.ID);

            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {

            //MyCustomer c1 = new MyCustomer()
            //{
            //     ID = 12345
            //};
            //c1.Print1();
            
            //Console.WriteLine(c1.ID);

            //var i = null;
            //var j;
            //j = 10;
            

            ICustomer1 IC1 = new MyCustomer();
            IC1.Print1();
            ICustomer2 IC2 = new MyCustomer();
            IC2.Print1();
            Console.WriteLine(IC1.ID);
            
            Console.ReadLine();
        }