i need to have a function that has two arguments.
public void funx(string a, string b)
{
// operations using string a and b
}
is it by any way possible to call the method funx() with only the first argument 'a' . if second argument 'b' is not entered during the function call, it should take a default value (for b) that can be set in fun x. in case i call funx() with two arguments a & b , then the values that i have provided in the function call should be used while skipping the default values set( for 'b').
in simple words, 'b' is optional. if entered, its value should be used. if not entered, then a default value should be used