Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34459

Re: Another question on Java keyword "this".

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!feeder2.news.elisa.fi!feeder1.news.elisa.fi!uutiset.elisa.fi!7564ea0f!not-for-mail
From Jukka Lahtinen <jtfjdehf@hotmail.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Another question on Java keyword "this".
Organization N/A
References <7d6a2a1e-bf53-472c-8ec2-2c92a0b5f73e@googlegroups.com> <bc7d7c11-2f50-4a0e-83dd-25df3d0fde4f@googlegroups.com> <e7781c42-b917-47fa-bdfb-9f4574208cb8@googlegroups.com> <aba5lbti1vrodvksmkifkfponinusja9uf@4ax.com>
X-no-archive yes
Content-Transfer-Encoding 8bit
Message-ID <lv4m9989x9.fsf@saunalahti.fi> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock sha1:ZJ2RXEWYnJw8Nae76Rw6QA95ArI=
MIME-Version 1.0
Content-Type text/plain
Lines 13
Date Sat, 04 Jun 2016 14:34:26 +0300
NNTP-Posting-Host 91.155.88.191
X-Complaints-To newsmaster@saunalahti.com
X-Trace uutiset.elisa.fi 1465040066 91.155.88.191 (Sat, 04 Jun 2016 14:34:26 EEST)
NNTP-Posting-Date Sat, 04 Jun 2016 14:34:26 EEST
Xref csiph.com comp.lang.java.programmer:34459

Show key headers only | View raw


Roedy Green <inquiry@mindprod.com> writes:

> you can always add the class name to this to make it clean. eg.
> MyOuters.this so that you can refer to an outer class object from an
> inner class one.

Needing to do that may suggest a design flaw somewhere.
The super keyword may be used to call super class methods.
And if you want to use attributes from a super class, you shouldn't
shadow them in the extending class.

-- 
Jukka Lahtinen

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Another question on Java keyword "this". cdalten@gmail.com - 2016-04-14 23:27 -0700
  Re: Another question on Java keyword "this". Eric Douglas <e.d.programmer@gmail.com> - 2016-04-15 04:59 -0700
    Re: Another question on Java keyword "this". cdalten@gmail.com - 2016-04-15 05:14 -0700
      Re: Another question on Java keyword "this". cdalten@gmail.com - 2016-04-15 05:31 -0700
        Re: Another question on Java keyword "this". Nigel Wade <nmw@ion.le.ac.uk> - 2016-04-15 14:05 +0100
          Re: Another question on Java keyword "this". Eric Douglas <e.d.programmer@gmail.com> - 2016-04-15 06:25 -0700
        Re: Another question on Java keyword "this". Lew <lewbloch@gmail.com> - 2016-04-15 14:48 -0700
      Re: Another question on Java keyword "this". Brixomatic <brixomatic@yahoo.com> - 2016-04-23 15:01 +0200
      Re: Another question on Java keyword "this". Roedy Green <inquiry@mindprod.com> - 2016-06-04 03:15 -0700
        Re: Another question on Java keyword "this". Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2016-06-04 14:34 +0300
          Re: Another question on Java keyword "this". Mike Amling <mamling@chaff.us> - 2016-06-04 14:07 -0500
    Re: Another question on Java keyword "this". Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-04-15 08:24 -0400
  Re: Another question on Java keyword "this". cdalten@gmail.com - 2016-04-15 14:45 -0700
    Re: Another question on Java keyword "this". Lew <lewbloch@gmail.com> - 2016-04-15 14:52 -0700
    Re: Another question on Java keyword "this". Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-04-15 18:26 -0400
      Re: Another question on Java keyword "this". cdalten@gmail.com - 2016-04-17 19:13 -0700
        Re: Another question on Java keyword "this". Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-04-18 07:37 -0400

csiph-web