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


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

Re: vocabulary

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: vocabulary
Date Sun, 27 Apr 2014 12:52:38 -0700
Organization Canadian Mind Products
Lines 29
Message-ID <f2nql9dvkidjochtle75491kv8fnkpnllr@4ax.com> (permalink)
References <8l0pl95jubrn24j0tgnqcc21arhkii83ko@4ax.com> <535caadc$0$6712$9b4e6d93@newsspool2.arcor-online.net> <ljibu5$98l$1@speranza.aioe.org> <535cda24$0$6715$9b4e6d93@newsspool2.arcor-online.net> <ljilqs$vvv$1@speranza.aioe.org>
Reply-To Roedy Green <see_website@mindprod.com.invalid>
NNTP-Posting-Host K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent ForteAgent/7.20.32.1218
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:28270

Show key headers only | View raw


On Sun, 27 Apr 2014 20:23:03 +1000, "Qu0ll" <Qu0llSixFour@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>He refers to "class or interface" which are most definitely types, not 
>instances surely?

In the sense I am looking for a generic term,
a class is a some source code bracketed with class xxx { }
an interface is some source code bracketed with interface xxx { }.

One way of looking at it is it is a related group of methods.

In many cases whatever you can do with a class reference you can do
with an interface reference. You should not have spell out "class or
interface" reference. In that case reference does mean both by
default.

If I were designing Java syntax from scratch, perhaps I would have
would made interface a modifier, e.g. interface class cf. abstract
class.  Then we would not have the awkward implements vs extends
distinction.  

I wonder if we could deprecate extends and make it a synonym for
implements. If the defined is an interface, it implies the extends
meaning.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Computers are like Old Testament gods; lots of rules and no mercy. 
~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)

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


Thread

vocabulary Roedy Green <see_website@mindprod.com.invalid> - 2014-04-26 21:09 -0700
  Re: vocabulary markspace <markspace@nospam.nospam> - 2014-04-26 21:25 -0700
    Re: vocabulary "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-04-27 17:30 +1000
  Re: vocabulary Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2014-04-27 14:42 +0800
  Re: vocabulary Marcel Müller <news.5.maazl@spamgourmet.org> - 2014-04-27 08:59 +0200
    Re: vocabulary "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-04-27 17:33 +1000
      Re: vocabulary Marcel Müller <news.5.maazl@spamgourmet.org> - 2014-04-27 12:21 +0200
        Re: vocabulary "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-04-27 20:23 +1000
          Re: vocabulary Roedy Green <see_website@mindprod.com.invalid> - 2014-04-27 12:52 -0700
            Re: vocabulary Martin Gregorie <martin@address-in-sig.invalid> - 2014-04-27 22:30 +0000
              Re: vocabulary Marcel Müller <news.5.maazl@spamgourmet.org> - 2014-04-28 08:23 +0200
              Re: vocabulary "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-05-04 13:00 +0100
                Re: vocabulary Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-05-04 08:44 -0400
  Re: vocabulary lipska the kat <lipskathekat@example.com> - 2014-04-27 09:01 +0100
    Re: vocabulary "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-04-27 19:53 +1000
      Re: vocabulary lipska the kat <lipskathekat@example.com> - 2014-04-27 11:43 +0100
  Re: vocabulary Jeff Higgins <jeff@invalid.invalid> - 2014-04-27 07:14 -0400
  Re: vocabulary Jeff Higgins <jeff@invalid.invalid> - 2014-04-27 07:32 -0400

csiph-web