Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.help Subject: Re: Interchanging objects? Date: Sat, 4 Feb 2012 23:00:59 -0800 (PST) Organization: http://groups.google.com Lines: 12 Message-ID: <2362859.192.1328425259754.JavaMail.geo-discussion-forums@prhb20> References: Reply-To: comp.lang.java.help@googlegroups.com NNTP-Posting-Host: 173.164.137.214 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1328425344 19442 127.0.0.1 (5 Feb 2012 07:02:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 5 Feb 2012 07:02:24 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1550 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