Java is only available!

xiaoxiao2021-03-06  43

/ ** * @Author 031202 * * Todo to change TYMENT GO to WINDTED TY Comment Go to WINDOW - * Preferences - Java - Code Style - Code Templates * / Class Valhold {public Int i = 10;}

Public class testparameter {public void amethod () {valhold v = new Valhold (); another (v); system.out.println (v.i);}

Public void Another (Valhold V) {v.i = 20; Valhold Vh = New Valhold (); v = vh; system.out.println (v.i);}

Public static void main (string [] argv) {TestParameter o = new testparameter (); .AMethod ();}} answer: 1020

转载请注明原文地址:https://www.9cbs.com/read-63143.html

New Post(0)