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

Lon Levy lxl at oregon.k12.wi.us
Mon Nov 19 22:11:56 GMT 2007


Hi Ian,

OOPs is neither better nor worse than procedural coding and I, although I started to code before structured and modular coding, have become convinced that it is best to start with functional programming to develop a solid understanding of algorithms before jumping to objects.  Better still is to teach students how to clearly analyze provided data and use that data to drive their code (see www.teach-scheme.org for lots more information, or ask me off-list).  At least that serves my students well.

Have a great Thanksgiving,

Lon.

Lon Levy, MS-CSEd
Computer Science Teacher
Volunteer Computer Club Advisor
Oregon High School
608-835-1316
LXL at oregon.k12.wi.us
cs at levytree.net

non somnos requiem

>>> Ian Barland <ibarland at radford.edu> 11/19/07 3:26 PM >>>
On using `this.`: I like the technique, and it does help students.  But it's
not a panacea: even weeks after writing methods involving multiple objects,
there is a strong kneejerk impulse to add 'this.' in front of *every* method
call, rather than actually think about what object they want to ask.  (Over
time, I'm becoming less and less convinced that OO is any less confusing for
beginners than procedural programming.)

--Ian


More information about the bluej-discuss mailing list