For this problem we'll work on message sends.
Problem #1
Let's say you have an object of type Turtle.
What are some messages that you might send it (with no method parameters)?
Description
There is no wrong answer.
Tips
Show Hint...
One idea might be "turnLeft"
Hints
Show Solution...
A few possible messages we could send the turtle object:
turnLeft
turnRight
speedUp
slowDown
turn180
etc.
Solution
Problem #2
Let's say you have an object of type Turtle.
What are some messages that you might send it (with method parameters)?
Description
There is no wrong answer.
Tips
Show Hint...
One idea might be turn(90)
Hints
Show Solution...
A few possible messages we could send the turtle object:
turn(45)
turn(-45)
changeColor(Blue)
setSpeed(5)
etc.
Solution
Introduction To Objects With Java (Chapter 401 - Messages)
Chapter 401 - Messages
Problems Relating to Concepts
Contents
Overview
Concepts
Greeter
SmartInteger
Point
Challenge
Chapter
Top
Search
TOC