[Bluej-discuss] How to call an accessor method in a different class?
Lon Levy
LXL at oregon.k12.wi.us
Mon Nov 19 18:16:56 GMT 2007
Hi Barry,
I asked Michael Kolling to consider using this. with all instance references a few years ago. He told me that it was an interesting idea, but that it was nonstandard enough that he was not going to include it in future versions of Objects First (which I think is otherwise a fine text). Please consider making the request. Maybe if enough of us relate the concept to him and to David Barnes, they will reconsider.
Regards,
Lon.
Lon Levy, MS-CSEd
Computer Science Teacher
Volunteer Computer Club Advisor
Oregon High School
608-835-1316
Lon.Levy at oregonsd.org
LXL at oregon.k12.wi.us
cs at levytree.net
non somnos requiem
>>> Barry Brown <barry at cs.sierracollege.edu> 11/19/2007 3:36 AM >>>
I think this is a great idea from a pedagogical standpoint. My BlueJ
students seem to understand variable and parameter names. When the
book introduces "this" in a constructor, it really throws the students
for a loop. Up until that point, they have this idea that Java names
are "global" and should be distinct within a class. Seeing a field and
a parameter with the same name really gives them trouble and they have
difficulty getting their heads around it.
I'm going to try using the "this" technique this coming semester.
Problem is, the BlueJ book doesn't consistently use it. Can we get the
authors to apply this principle?
http://lists.bluej.org/mailman/listinfo/bluej-discuss
More information about the bluej-discuss
mailing list