[Bluej-discuss] How to call an accessor method in a different class?

Seth Bergmann bergmann at elvis.rowan.edu
Mon Nov 19 18:37:11 GMT 2007


I vote for 'this.' inclusion in the textbook... this is a great 
pedagogical idea.



Seth D. Bergmann 		Associate Professor
Computer Science Department 	bergmann at cs.rowan.edu
Rowan University	  	856-256-4500 ext. 3197
Glassboro, NJ  08028            Fax 856-256-4741

On Mon, 19 Nov 2007, Lon Levy wrote:

> 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
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>


More information about the bluej-discuss mailing list