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


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

Re: I don't understand why the following doesn't call Rectangle

From Manuel Collado <m.collado@domain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: I don't understand why the following doesn't call Rectangle
Date 2016-12-14 19:13 +0100
Organization Aioe.org NNTP Server
Message-ID <o2s21o$13kr$1@gioia.aioe.org> (permalink)
References <45806188-ffb3-4173-aaf0-48c84655fa85@googlegroups.com> <afa8adde-a56e-44b0-907e-832c7ab6d165@googlegroups.com>

Show all headers | View raw


El 13/12/2016 21:47, lewbloch@gmail.com escribió:
> On Tuesday, December 13, 2016 at 7:43:07 AM UTC-8, cda...@gmail.com wrote:
> [...snipped...]
>> Wouldn't super () invoke the Rectangle constructor, and thus construct a Rectangle?
>
> No, because it is part of the subtype constructor, so all it does is initialize (which is what "construct" means) the parts of the object that are defined in its supertypes.

Yes. Probably the term "constructor" is misguiding. A constructor 
doesn't create an object, but just initialize its contents. It is the 
"new" operator which actually creates objects.

Well, this is how I see the picture.
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado

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


Thread

I don't understand why the following doesn't call Rectangle cdalten@gmail.com - 2016-12-13 07:42 -0800
  Re: I don't understand why the following doesn't call Rectangle Eric Douglas <e.d.programmer@gmail.com> - 2016-12-13 07:52 -0800
    Re: I don't understand why the following doesn't call Rectangle cdalten@gmail.com - 2016-12-13 08:06 -0800
      Re: I don't understand why the following doesn't call Rectangle Eric Douglas <e.d.programmer@gmail.com> - 2016-12-13 08:20 -0800
  Re: I don't understand why the following doesn't call Rectangle Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-12-13 11:42 -0500
  Re: I don't understand why the following doesn't call Rectangle lewbloch@gmail.com - 2016-12-13 12:47 -0800
    Re: I don't understand why the following doesn't call Rectangle Manuel Collado <m.collado@domain.invalid> - 2016-12-14 19:13 +0100

csiph-web