Before starting any specific exercise, you may wish to download, extract, and open up the provided starter project for THE PRE-CLASS EXERCISES for this lesson so that you'll have it ready when you need/want it.
Starter project for these activities
Download, extract, and open up the provided starter project for Visual Studio. In the Program.cs file you will find the Object_Basics.RunExercise() method, which you will trace through using this file: trace file for Object_Basics.RunExercise.
Keep in mind that unlike BIT 115 (wherein you were expected to transcribe each and every line as you hand-executed the entire program) in these exercises you are expected to mentally simulate the execution of the program, updating the trace as you go.
In order to have a well-defined, consistent procedure for y'all to follow, you should do the following: start mentally simulating the program, using the top-most cell in the trace file as your 'scratch space' to keep track of what the program is doing - we're going to call this the 'current cell'. When you see a comment that that looks like: // SWITCH TO NEW CELL IN THE TRACE FILE you should copy all the values from the current into the cell below it, and then you should switch to using that new cell as your current cell
Be prepared to walk the class through your trace, verbally explaining the execution of the program while using the trace to illustrate the value of variables at various points in the program's run.
Trace through the Object_Overloading.RunExercise
method using this file: trace file for
Object_Overloading.RunExercise.
Be prepared to walk the class through your trace, verbally explaining the execution of the program while using the trace to illustrate the value of variables at various points in the program's run.
Trace through the Object_Array.RunExercise
method using this file: trace file for
Object_Array.RunExercise.
You do not need to include a reference to the ArrayHelper object (we'll look at
that in more detail when we cover Object Oriented Programming)
Be prepared to walk the class through your trace, verbally explaining the execution of the program while using the trace to illustrate the value of variables at various points in the program's run.
Once you've finished all of the prior exercises you should spend any remaining time on any incomplete homework assignments (or incomplete revisions to homework assignments)