Is it correct to say that a parameter holds a reference to an object?
[unsub]
Printable View
Is it correct to say that a parameter holds a reference to an object?
[unsub]
See the tutorial page
Passing Information to a Method or a Constructor
with special atttention to the section
Passing Reference Data Type Arguments.
Thank you for pointing me into the correct direction.
This is what I formulate from that page (please correct me if I am incorrect):
"Parameters refers to the list of variables in a method declaration. Arguments are the actual values that are passed in when the method is invoked. When you invoke a method, the arguments used must match the declaration's parameters in type and order"
Accroding to the previous exert from the link provided;
Parameters: are variables.
Arguments: are the values we pass into a variable when the method is called.
[unsub]