Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1550
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: Interchanging objects? |
| Date | 2012-02-04 23:00 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <2362859.192.1328425259754.JavaMail.geo-discussion-forums@prhb20> (permalink) |
| References | <bb014e7e-2bf1-4d55-8677-6e2514826da5@p7g2000yqk.googlegroups.com> |
Davej wrote: > If two objects have the same method names, can one of them be cast as > the other? Not unless they are type compatible. Method names do not define type compatibility - in fact, doing it by name is the antithesis of type safety. Read up on the conversion rules here: http://java.sun.com/docs/books/jls/third_edition/html/conversions.html -- Lew
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar
Interchanging objects? Davej <galt_57@hotmail.com> - 2012-02-04 12:02 -0800
Re: Interchanging objects? Lew <lewbloch@gmail.com> - 2012-02-04 23:00 -0800
Re: Interchanging objects? Davej <galt_57@hotmail.com> - 2012-02-05 07:41 -0800
Re: Interchanging objects? Lew <lewbloch@gmail.com> - 2012-02-05 11:34 -0800
Re: Interchanging objects? Roedy Green <see_website@mindprod.com.invalid> - 2012-02-08 22:42 -0800
Re: Interchanging objects? Lew <lewbloch@gmail.com> - 2012-02-09 09:21 -0800
Re: Interchanging objects? Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-02-07 08:09 -0500
csiph-web