Mar 21, 2005
Today's lecture:
- First I put some code on the board which explained how arrays and objects are passed by reference, while your primitive data types, such as ints, doubles, and chars are pass by value when being sent to a method. Make sure you understand this it will be on the test next Wed.
- Then I gave another example of arrays (below) that makes an array of objects (Employee class) and then calls methods of each instance in the array.
Driver
Employee