Lecture 10 Closer Look at Classes, Methods
Lecture 10 Closer Look at Classes, Methods
• The first way is call-by-value. This approach copies the value of an argument into the
formal
• parameter of the subroutine. Therefore, changes made to the parameter of the
subroutine
• have no effect on the argument.