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


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

Re: Casts and special things of the Java language

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.help
Subject Re: Casts and special things of the Java language
Date Wed, 06 Apr 2011 12:32:38 -0400
Organization albasani.net
Lines 17
Message-ID <ini4j7$77b$1@news.albasani.net> (permalink)
References <874o6gqv2k.fsf@merciadriluca-station.MERCIADRILUCA> <lmtfp6d63kcrqortkn60q7maipr5cg36qn@4ax.com> <87tyefbsol.fsf@merciadriluca-station.MERCIADRILUCA> <4f3453aa-5824-4aa1-81f0-6bfabcff3c7b@hd10g2000vbb.googlegroups.com> <inac6q$6ns$1@dont-email.me> <548b9e2c-28a4-4ebf-87ba-a20c9c54c287@k30g2000yqb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net j2WlSoyE+SiEHOWNVKAwgYGs9UsqeytzOZOWdHsrl4w82HgyWsg6GVVV9H9K0nX/0NW5fxK+1gjbG/i0xJHlAQ==
NNTP-Posting-Date Wed, 6 Apr 2011 16:32:39 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="xNU7EAu1sC5iwor+GzSpFw+A4CYl4rku+VYHR/nocp2i6QvORWXReyUxr9O18++ZAFSWVh6lh9vkHOcR28sr7y4grfTn+T5BPM8juPXrAC7mYQXbZHAOkpuOTz/L9sb7"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
In-Reply-To <548b9e2c-28a4-4ebf-87ba-a20c9c54c287@k30g2000yqb.googlegroups.com>
Cancel-Lock sha1:GTP0LQCRWo4QGLiqyHn5I8LZuRs=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.help:555

Show key headers only | View raw


Merciadri Luca wrote:
> Because methods are accessed using dynamic links, as I said earlier.
> Casting to another type which is a subclass of a class does not modify
> methods, but only variables!

"Static" has a particular meaning in Java.

These aren't usually called "links".

Subtypes do *not* modify variables in their supertypes.  They do override 
supertype methods, potentially, but they don't "modify" methods, either.  This 
is rather the opposite of what you suppose.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

Back to comp.lang.java.help | Previous | NextPrevious 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