Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34146
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2016-04-15 14:52 -0700 |
| References | <7d6a2a1e-bf53-472c-8ec2-2c92a0b5f73e@googlegroups.com> <8bd83f19-b47f-43e8-9acb-d3d4ed125a2a@googlegroups.com> |
| Message-ID | <81ea3fca-b3ea-40a8-bd4f-37df44abde4c@googlegroups.com> (permalink) |
| Subject | Re: Another question on Java keyword "this". |
| From | Lew <lewbloch@gmail.com> |
On Friday, April 15, 2016 at 2:45:33 PM UTC-7, cda...@gmail.com wrote: > I thought about it. I think I found out what's irking me. Does > map.setOnGroundOverlayClickListener(this); > Implement something? If so, what does it implement? The keyword "implements" in Java means that a class declares an override of an abstract method. Since the method you ask about is on the 'map' instance, not on the containing class, we'd have to know the type of the 'map' variable to know if 'setOnGroundOverlayClickListener()' is inherited by that type. In a general sense, every concrete (that is, non-abstract) method implements something, namely the logic of the method. In a Java-specific sense, the method only "implements" something if it overrides an abstract method that it inherited. Why not read the Java Tutorials? https://docs.oracle.com/javase/tutorial/java/IandI/usinginterface.html -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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