Bug 1205 : Book p. 460 - Code error
Last modified: 2010-04-22 12:29




Status:
ASSIGNED
Resolution:
-
Priority:
P2
Severity:
normal

 

Reporter:
Bravo
Assigned To:
REAS

Attachment Type Created Size Actions

Description:   Opened: 2009-03-14 08:41
This error relates to another mentioned in Bug Report 1204.

Line 11 of code 48-10:

if (press == true) {

will generate the error:

Cannot find anything named "press"

The line should be changed to:

if (pressed == true) {

because "pressed" is the name of the boolean variable in the super-class
(p. 439, line 8) that this class extension refers to.
Additional Comment #1 From REAS 2010-04-22 12:29
Thank you. This will be fixed in the next printing.
This bug is now being tracked here.