[Bluej-discuss] How to call an accessor method in a different class?
Aryeh M. Friedman
aryeh.friedman at gmail.com
Sun Nov 18 15:54:21 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>
> This might be a little easier if the first question or two had less
> magic in them -- in particular, the automatic "this" shortcut. When
> I teach this stuff, I expect EVERY field reference to be of the form
> OBJECT.FIELDNAME, and EVERY method call to be of the form
> OBJECT.METHOD(ARGS); if the field or method is in the current object,
> my students are expected to use "this" explicitly as the OBJECT.
a) overkill?
b) teaches bad habits (i.e. non-standard style)
- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHQGAWJ9+1V27SttsRAgLWAKCo3hMemZxmw+i24jQz2oh+Qd08PgCgnW59
TuK4n2Aabd4g/xDLx5kzn0s=
=DJSI
-----END PGP SIGNATURE-----
More information about the bluej-discuss
mailing list