Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » two interface (with a same named method)
two interface (with a same named method) [message #72972] Tue, 11 July 2006 06:25 Go to next message
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 #73001 is a reply to message #72972] Tue, 11 July 2006 17:42 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. Smith
Messages: 394
Registered: July 2009
Senior Member
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 #73018 is a reply to message #73001] Thu, 13 July 2006 09:59 Go to previous message
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 17:42 Go to previous message
Randy D. Smith is currently offline Randy D. Smith
Messages: 394
Registered: July 2009
Senior Member
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 09:59 Go to previous message
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)
Previous Topic:two interface (with a same named method)
Next Topic:Proposal for Rich AJAX Platform (RAP)
Goto Forum:
  


Current Time: Wed Oct 01 08:28:43 GMT 2014

Powered by FUDForum. Page generated in 0.09334 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software