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

Path csiph.com!aioe.org!.POSTED!not-for-mail
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 Wed, 14 Dec 2016 19:13:33 +0100
Organization Aioe.org NNTP Server
Lines 15
Message-ID <o2s21o$13kr$1@gioia.aioe.org> (permalink)
References <45806188-ffb3-4173-aaf0-48c84655fa85@googlegroups.com> <afa8adde-a56e-44b0-907e-832c7ab6d165@googlegroups.com>
NNTP-Posting-Host wE1uSqEquYPwpV6cZozKhg.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:36120

Show key headers only | 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