Computer Science 252
Problem Solving with Java

Fall 2013, The College of Saint Rose

Lecture 10: More Active Objects
Date: Tuesday, October 15, 2013


Lecture 10 Assignment

Due at the start of class, Thursday, October 17.

Please submit answers to these questions in Submission Box under "LA10" by the start of our next class. We will discuss these questions at the start of class, so no late submissions are accepted. Please be sure that your name is clearly indicated in all submissions.

Note: you may wish to submit this on paper at the start of class rather than through Submission Box.

Draw a memory diagram of the FallingSnow example. More specifically, the diagram should show the variables in existence and their values at a point after which the mouse has been clicked twice on the canvas, resulting in the creation of 2 Cloud objects. Show the situation assuming that the first Cloud is executing its run method and is in the pause statement after creating its second FallingSnow object, and the second Cloud object is executing in its constructor just before calling the start method. This means there should also be 2 FallingSnow objects in existence. Assume that the first is executing in its run method, and that the second is executing in the constructor just before calling its start method. (15 points)