Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35891
| Path | csiph.com!news.redatomik.org!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: "implements" does not mean "implements" |
| Date | Thu, 10 Nov 2016 21:05:23 -0500 |
| Organization | Aioe.org NNTP Server |
| Lines | 28 |
| Message-ID | <o03914$18dp$1@gioia.aioe.org> (permalink) |
| References | <implements-20161110014035@ram.dialup.fu-berlin.de> |
| NNTP-Posting-Host | PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.java.programmer:35891 |
Show key headers only | View raw
On 11/9/2016 7:45 PM, Stefan Ram wrote:
> Just a small thought I had on the train today:
>
> "implements" does not always mean "implements".
>
> For example, this compiles:
>
> interface A { void m(); }
>
> abstract class C implements A { public abstract void m(); }
This is more terminology than Java.
It is correct that C does not have an implementation for
the method m.
But I think that you can say that C implements A anyway.
Reason:
* with no m in C you would get a compile error
* non-abstract methods in C can use m
So m is in some sense present in C even though the
actual implementation have to be supplied by a
sub class.
Arne
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Re: "implements" does not mean "implements" Arne Vajhøj <arne@vajhoej.dk> - 2016-11-10 21:05 -0500
Re: "implements" does not mean "implements" Sebastian <nowhere@nirvana.org> - 2016-11-12 11:22 +0100
Re: "implements" does not mean "implements" Arne Vajhøj <arne@vajhoej.dk> - 2016-11-12 08:50 -0500
Re: "implements" does not mean "implements" Sebastian <nowhere@nirvana.org> - 2016-11-13 22:30 +0100
Re: "implements" does not mean "implements" Arne Vajhøj <arne@vajhoej.dk> - 2016-11-14 19:48 -0500
csiph-web