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


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

Re: super

From "giuseppe.on.usenet" <giuseppe.on.usenet@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: super
Date 2011-09-18 12:21 -0700
Organization http://groups.google.com
Message-ID <797b5b56-9855-4ff1-a1e9-1eef2dcef7a8@d12g2000vba.googlegroups.com> (permalink)
References <3e87dcf3-6842-41bf-8eb8-0c4181a178a9@k1g2000vbz.googlegroups.com> <j55ad2$o2g$1@dont-email.me> <slrnj7cdtu.6gl.avl@gamma.logic.tuwien.ac.at>

Show all headers | View raw


On 18 Set, 20:26, Andreas Leitgeb <a...@gamma.logic.tuwien.ac.at>
wrote:

> I think the misunderstanding is far more basic.
>
> To giuseppe:
>
> In dir2.GrandChild's main, just remove the line, where you instantiate
> Child, and leave the rest exactly as is.  Recompile & run it.  You'll
> see that instantiating class Child (or not doing it) doesn't change
> anything. What does this tell you?

I am not the author :) I found that code in a certification study
guide (the original question was: What will the output be?). Maybe
they instantiated the Child object just to try to confuse the reader.
Actually, I don't think the question was very simple, because you are
not supposed to use a compiler during the exam.

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


Thread

super "giuseppe.on.usenet" <giuseppe.on.usenet@gmail.com> - 2011-09-18 09:53 -0700
  Re: super Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-09-18 12:39 -0500
    Re: super Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-18 18:26 +0000
      Re: super Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-18 18:29 +0000
      Re: super "giuseppe.on.usenet" <giuseppe.on.usenet@gmail.com> - 2011-09-18 12:21 -0700
        Re: super Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-18 19:48 +0000
          Re: super Lew <lewbloch@gmail.com> - 2011-09-18 13:16 -0700

csiph-web