Methods can take primitives and/or object references as arguments.
Method arguments are always copies.
Method arguments are never actual objects (they can be references to objects).
A primitive argument is an unattached copy of the original primitive.
A reference argument is another copy of a reference to the original object
Passing Variables into Methods
Friday, August 21, 2009
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment