A
Angus
Hello
I am coming to Java from C++ . In C++, if I want to pass a variable into
another function then by default a copy of variable is passed. Is this the
same in Java?
I want to pass a reference to my variable to a java function. How do I do
that.
Reason is, in my function I have setup networking variables - but they are
not members of class. So I want to pass the networking variables, eg
socket, etc by reference to a connect function. How do I do that?
Angus
I am coming to Java from C++ . In C++, if I want to pass a variable into
another function then by default a copy of variable is passed. Is this the
same in Java?
I want to pass a reference to my variable to a java function. How do I do
that.
Reason is, in my function I have setup networking variables - but they are
not members of class. So I want to pass the networking variables, eg
socket, etc by reference to a connect function. How do I do that?
Angus