static void Main(string[] args) { NumberManipulator n = new NumberManipulator(); int a, b; n.getValues(out a, out b); Console.WriteLine("After method call, value of a: {0}", a); Console.WriteLine("After method call, value of b: {0}", b); }
static void Main(string[] args) { NumberManipulator n = new NumberManipulator(); /* local variable definition */ int a, b; /* calling a function to get the values */ n.getValues(out a, out b); Console.WriteLine("After method call, value of a : {0}", a); Console.WriteLine("After method call, value of b : {0}", b); }