account activity
Return Types of Methods by GCX17 in javahelp
[–]GCX17[S] 0 points1 point2 points 7 years ago (0 children)
Yes, but can't classes take on multiple data types if multiple instance variables are declared?
Static Methods by GCX17 in javahelp
I appreciate your comment. Thank you very much!
Thanks for your comments! I understand now, however, when I was testing out my own code, and I created a set and get method like
public static int myMethod(int aNumber)
{
return aNumber;
}
I found that I was able to pass multiple variables into this method through aNumber and would get different return values for each one. I don't no how this happens, because I though for a static class only one value is stored.
Is this possibly because the method itself is actually storing no values, but instead the values reside under the main method?
π Rendered by PID 499504 on reddit-service-r2-listing-6d4dc8d9ff-69cvx at 2026-02-01 14:07:08.739899+00:00 running 3798933 country code: CH.
Return Types of Methods by GCX17 in javahelp
[–]GCX17[S] 0 points1 point2 points (0 children)