Re: Method Parameters....
Quote:
Originally Posted by
Opticknerve
[B]Hy guys its me again with another question from my book..... Something seems wrong with my solution the the question but i just cant put my finger on it...
Umm... ok, so what "seems wrong" exactly?
Re: Method Parameters....
Thanks for the reply bigEd781. Hornestly I dont know what the problem is hence im seeking your help. Do you think ive answered the question correctly
Re: Method Parameters....
Quote:
Originally Posted by
Opticknerve
Thanks for the reply bigEd781. Hornestly I dont know what the problem is hence im seeking your help. Do you think ive answered the question correctly
No.
Code:
The method must not return anything
Both your methods return something.
Btw, the goal of this exercise is to print out the original values after each method runs. It is trying to show you that when passed by value, the original variable doesn't change (but when passed by ref, the original value will change).