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


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

Re: overriding with different return value type

Newsgroups comp.lang.java.programmer
Date 2015-07-16 17:13 -0700
References <mo8a4l$h99$1@speranza.aioe.org> <mo8i8h$oi3$1@dont-email.me>
Message-ID <6660a51d-773f-4fea-8e9d-a4a88d02ecff@googlegroups.com> (permalink)
Subject Re: overriding with different return value type
From Lew <lewbloch@gmail.com>

Show all headers | View raw


 Xue Feng wrote:
> >  I wonder why the clone() method  works in different way.

Look up "covariant return types". It's in the JLS. 

Back to comp.lang.java.programmer | Previous | Next — Previous 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