September 12, 2008

advertisement
September 12, 2008




Exam 1 is today
When is Exam 2 – check out schedule on
website…
Lab 2 all pieces to be turned in by end of day
today (Friday)
Lab 3 posted for next week


Exam 1
References and Variables




We sometimes need a way to refer to the
objects we create
We need to store a reference to the object
When we evaluate new Object(), the value that
is produced is actually a reference to the
object that was created.
If we can find a way to hold onto that
reference, we can refer to the object that was
created.


Variables are named storage
There are two parts to creating a variable
1) …
2) We need to give the variable a name

We should give the variable name that
makes sense in the context of the program
Download