Identified by AP administrators from the 2004 free-response answers:
super
in the first line of
a constructor method.
(It's worth teaching students to always use super
,
and not even mentioning that sometimes it's optional.)
Set s = new Set(); // illegal
Identified by me after grading over a thousand responses to 2005's A2 question.
public class Point(double myX, double myY) { double x = myX; double y = myY; public double getX() { return x; } //...
private
(or protected
).
I would guess that this comes from not understanding
the distinction between instance variables and local variables,
syntactically and semantically.
super
line in a constructor doesn't
include arguments corresponding to a superclass constructor.