Computer Science 252
Problem Solving with Java

Fall 2015, The College of Saint Rose

Lecture 13: Active Object Wrapup; Java Interfaces
Date: Thursday, October 15, 2015


Agenda

Lecture 13 Assignment

Due at the start of class, Tuesday, October 20.

Please submit answers to these questions either as a hard copy (typeset or handwritten are OK) or by email to terescoj AT strose.edu by the start of class. Please use a clear subject line when submitting by email (e.g., CSC 252 Lecture 13 Assignment , Joe Student). We will discuss these questions at the start of class, so no late submissions are accepted.

  1. Modify the FallingSnow example so that each snowflake (that is, each FallingSnow object) stops falling when it reaches the bottom of the canvas, but then remains on the canvas for 5 seconds before "melting". During this 5 seconds, the snowflake should move down by 1 pixel every half second, then get removed from the canvas as before.

    You need only submit your updated run method for the FallingSnow class. (5 points)

Terminology

Examples