How do I get the following program to print the result of sumOfNumbers method? I was unable to call this method in the main method and I'm not sure why. Can someone explain what I have done wrong?
class Program
{
static void Main(string[] args)
{
//Console.WriteLine();
//Console.ReadLine();
}
private int sumOfNumbers (int x, int y)
{
return x + y;
}
}