Sunday, May 4, 2008
Tutorial 3 - Supplementary - Problem 1
Problem 1: Pass It On!
You are given randomGuy2, skaterGirl, and aliceLiddell standing.
Create using methods and parameters a way for randomGuy2 to pass the
message he says ("hurray") to skaterGirl, who then passes it to Alice.
When skaterGirl receives the message, she should say it and pass it on to Alice.
When Alice receives the message she should say it.
(Rules: You need to create exactly two new methods: GuyPassToGirl and GirlPassToGirl
Each method must pass a parameter, which is the message.)