How many way you can pass parameter to a method

Value, Reference, Output Parameter

int val1 = 0; //must be initialized 
int val2; //optional
Example1(ref val1);
Example2(out val2); //must be initialized inside method

results matching ""

    No results matching ""