two interface (with a same named method) [message #72972] |
Tue, 11 July 2006 02:25  |
Eclipse User |
|
|
|
Originally posted by: LoverBabel.hotmail.com
Hi,
Is it possible to implement InterfaceA and InterfaceB? How?
--------------
interface InterfaceA {
public Vector getData();
}
interface InterfaceB {
public String getData();
}
public class TwoInterfaceClass implements InterfaceA, InterfaceB {
// ?????
}
---------------
Regards
Alex, Fu
|
|
|
|
Re: two interface (with a same named method) [message #73018 is a reply to message #73001] |
Thu, 13 July 2006 05:59  |
Eclipse User |
|
|
|
Originally posted by: LoverBabel.hotmail.com
I am so sorry.
thanks for remind me.
regards
Alex
"Randy D. Smith" <randy.d.smith@intel.com> wrote in message
news:e90ntn$ks5$1@utils.eclipse.org...
> Alex Fu wrote:
>> Hi,
>> Is it possible to implement InterfaceA and InterfaceB? How?
>> --------------
>> interface InterfaceA {
>> public Vector getData();
>> }
>>
>> interface InterfaceB {
>> public String getData();
>> }
>>
>> public class TwoInterfaceClass implements InterfaceA, InterfaceB {
>> // ?????
>> }
>> ---------------
>> Regards
>>
>> Alex, Fu
>
> I'm not sure why you chose eclipse.technology, but... even
> eclipse.tools.jdt would have probably been inappropriate. This isn't even
> Eclipse related... it's a "Java question".
>
> Googling "Java implements interface multiple same-method" pointed me at <
> http://www.javaworld.com/javaworld/javaqa/2001-03/02-qa-0323 -diamond.html
> >, "How does Java solve the multiple-inheritance diamond problem?"
>
> Okay?
>
> --
> RDS
>
> Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
> Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
|
|
|
Re: two interface (with a same named method) [message #600888 is a reply to message #72972] |
Tue, 11 July 2006 13:42  |
Eclipse User |
|
|
|
Alex Fu wrote:
> Hi,
> Is it possible to implement InterfaceA and InterfaceB? How?
> --------------
> interface InterfaceA {
> public Vector getData();
> }
>
> interface InterfaceB {
> public String getData();
> }
>
> public class TwoInterfaceClass implements InterfaceA, InterfaceB {
> // ?????
> }
> ---------------
> Regards
>
> Alex, Fu
I'm not sure why you chose eclipse.technology, but... even
eclipse.tools.jdt would have probably been inappropriate. This isn't
even Eclipse related... it's a "Java question".
Googling "Java implements interface multiple same-method" pointed me at
<
http://www.javaworld.com/javaworld/javaqa/2001-03/02-qa-0323 -diamond.html
>, "How does Java solve the multiple-inheritance diamond problem?"
Okay?
--
RDS
Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
|
|
|
Re: two interface (with a same named method) [message #600897 is a reply to message #73001] |
Thu, 13 July 2006 05:59  |
Eclipse User |
|
|
|
Originally posted by: LoverBabel.hotmail.com
I am so sorry.
thanks for remind me.
regards
Alex
"Randy D. Smith" <randy.d.smith@intel.com> wrote in message
news:e90ntn$ks5$1@utils.eclipse.org...
> Alex Fu wrote:
>> Hi,
>> Is it possible to implement InterfaceA and InterfaceB? How?
>> --------------
>> interface InterfaceA {
>> public Vector getData();
>> }
>>
>> interface InterfaceB {
>> public String getData();
>> }
>>
>> public class TwoInterfaceClass implements InterfaceA, InterfaceB {
>> // ?????
>> }
>> ---------------
>> Regards
>>
>> Alex, Fu
>
> I'm not sure why you chose eclipse.technology, but... even
> eclipse.tools.jdt would have probably been inappropriate. This isn't even
> Eclipse related... it's a "Java question".
>
> Googling "Java implements interface multiple same-method" pointed me at <
> http://www.javaworld.com/javaworld/javaqa/2001-03/02-qa-0323 -diamond.html
> >, "How does Java solve the multiple-inheritance diamond problem?"
>
> Okay?
>
> --
> RDS
>
> Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
> Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
|
|
|
Powered by
FUDForum. Page generated in 0.02486 seconds