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


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

Re: overriding with different return value type

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: overriding with different return value type
Date 2015-07-16 10:04 -0400
Organization A noiseless patient Spider
Message-ID <mo8dqd$7gr$1@dont-email.me> (permalink)
References <mo8a4l$h99$1@speranza.aioe.org>

Show all headers | View raw


On 07/16/2015 09:04 AM, Xue Feng wrote:
> According to the JDK manual, overriding requirs that
> (1) the same signature
> (2) the same return value type
> The following example demonstrates it:

I'm not sure what the JDK manual is.

The Java® Language Specification
Java SE 8 Edition has at least this to say
about overriding:

<http://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.4.8>


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


Thread

overriding with different return value type Xue Feng <xf.lotus@yahoo.com> - 2015-07-16 21:04 +0800
  Re: overriding with different return value type Jeff Higgins <jeff@invalid.invalid> - 2015-07-16 10:04 -0400
  Re: overriding with different return value type e.d.programmer@gmail.com - 2015-07-16 07:23 -0700
  Re: overriding with different return value type Jeff Higgins <jeff@invalid.invalid> - 2015-07-16 11:20 -0400
    Re: overriding with different return value type Lew <lewbloch@gmail.com> - 2015-07-16 17:13 -0700

csiph-web