How to achieve Call by value and Call by reference in X++ with example ?

Hi,

I just know in C# that…example

Call by value

methodTest(int Y)

{

Y=Y+10;

}

main()

{

int X = 100;

methodTest(X);

}

output 100

in case of call by reference

main()

{

int X=100;

methodTest( ref X);

}

output 110