Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #555
| From | Lew <noone@lewscanon.com> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: Casts and special things of the Java language |
| Date | 2011-04-06 12:32 -0400 |
| Organization | albasani.net |
| Message-ID | <ini4j7$77b$1@news.albasani.net> (permalink) |
| References | (1 earlier) <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> |
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 | Next — Previous in thread | Find similar | Unroll 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