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


Groups > comp.lang.java.help > #514

Re: Casts and special things of the Java language

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.help
Subject Re: Casts and special things of the Java language
Date Sun, 03 Apr 2011 10:53:25 -0700
Organization A noiseless patient Spider
Lines 31
Message-ID <inac6q$6ns$1@dont-email.me> (permalink)
References <874o6gqv2k.fsf@merciadriluca-station.MERCIADRILUCA> <lmtfp6d63kcrqortkn60q7maipr5cg36qn@4ax.com> <87tyefbsol.fsf@merciadriluca-station.MERCIADRILUCA> <4f3453aa-5824-4aa1-81f0-6bfabcff3c7b@hd10g2000vbb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sun, 3 Apr 2011 17:53:31 +0000 (UTC)
Injection-Info mx03.eternal-september.org; posting-host="HNtbhFK4u1h2GX4o7nzHOA"; logging-data="6908"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18t3pI0CpxQZMiObqnvOQygSAOv8miTvuk="
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
In-Reply-To <4f3453aa-5824-4aa1-81f0-6bfabcff3c7b@hd10g2000vbb.googlegroups.com>
Cancel-Lock sha1:Uj1AEuiQhE30dEU2IIUEXyaP/dI=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.help:514

Show key headers only | View raw


On 4/3/2011 9:01 AM, Merciadri Luca wrote:

>
> I just re-thought about the fact that in Java, variables are accessed
> using `static links,' when an object methods are accessed using a
> `dynamic link.' As a result,


I realize that there may be English language issues here, but I'd hope 
that an advanced student in OOP would know that "dynamic links" is 
called "polymorphism."


> * output 1 is 1 because a becomes b,

Oddly stated, but ok.

> * output 5: ((A) b).m() is equivalent to b.m(), that is, output 2,
> which is 1,

Why?  There's a technical word that belongs here instead of "equivalent."

> * output 6: ((A) b).v is not b.v, because variables are accessed using
> static links.

Too poorly stated to pass.  Again, there is some technical language that 
describes "static links" properly that a OOP student should know about 
from previous studies.  What are those technical words?


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


Thread

Casts and special things of the Java language Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-04-02 22:04 +0200
  Re: Casts and special things of the Java language Lew <noone@lewscanon.com> - 2011-04-02 17:22 -0400
  Re: Casts and special things of the Java language Roedy Green <see_website@mindprod.com.invalid> - 2011-04-02 21:31 -0700
    Re: Casts and special things of the Java language Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-04-03 11:16 +0200
      Re: Casts and special things of the Java language Merciadri Luca <merciadriluca@gmail.com> - 2011-04-03 09:01 -0700
        Re: Casts and special things of the Java language markspace <-@.> - 2011-04-03 10:53 -0700
          Re: Casts and special things of the Java language Merciadri Luca <merciadriluca@gmail.com> - 2011-04-03 11:28 -0700
            Re: Casts and special things of the Java language markspace <-@.> - 2011-04-03 13:35 -0700
              Re: Casts and special things of the Java language Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-04-03 22:58 +0200
            Re: Casts and special things of the Java language Lew <noone@lewscanon.com> - 2011-04-06 12:32 -0400

csiph-web