示例#1
0
文件: Program.cs 项目: rikrd92/Blog
 static void Main(string[] args)
 {
     var oldCustomer = new Customer("Mumbai");
     var newCustomer = new CustomerV2();
     WriteLine(oldCustomer.City);
     WriteLine(newCustomer.City);
     ReadLine();
 }
示例#2
0
        static void Main(string[] args)
        {
            var oldCustomer = new Customer("Mumbai");
            var newCustomer = new CustomerV2();

            WriteLine(oldCustomer.City);
            WriteLine(newCustomer.City);
            ReadLine();
        }