Lecture 9
10
How parameters really work
•Name of parameter (s) in method declaration need not match the name of the value in the message (screen)
•You can’t even think they should match:
–The value in the message might not even have a name (the 2 in the example)
–The method can be written before the client      (in some other class) has even been imagined - and the client programmer does not have access to the source code with the method declaration
•The type of the value in the message must match the type in the method declaration