Next:
Objects: Message Passing
Up:
Java Notes
Previous:
Objects: Variables
Objects: Methods
Call-by-value of Method parameters
Value copied for primitive type parameter
Reference copied for class type parameter
Object NOT copied, shared: call-by-reference
Example
rect.move(10,20); new Rectangle().move(10,20); (anonymous)
Ananda Amatya
9/15/1999