CSE 115 September 12, 2008
Announcements 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
Lesson Plan Exam 1 References and Variables
References 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 Variables are named storage There are two parts to creating a variable … We need to give the variable a name We should give the variable name that makes sense in the context of the program