static void Main() { MethodParameters methodParameters = new MethodParameters(); methodParameters.GetUserDetails(); methodParameters.DisplayUserDetails(); Console.Read(); }
static void Main() { //to call non - static method MethodParameters methodParameters = new MethodParameters(); methodParameters.get_details(); methodParameters.display(); Console.ReadLine(); }