示例 调用方法的时候不需要先定义变量,将定义变量放到参数传递中 //out product2.CalculateTax(out double p); System.Console.WriteLine("p is " + p);