Wednesday, November 3, 2010

lecture notes

Subs, part II
ByVal
ByRef

actual vs. formal parameters

changes to ByVal parameters do not "stick"
changes to ByRef parameters do "stick"

a reference is an arrow we can follow to the variable
a reference is an alias to the variable; an alias is another name for the variable

passing them in order
keyword parameters

we got up to end of example 2

No comments:

Post a Comment