two interface (with a same named method) [message #72972] |
Tue, 11 July 2006 06:25 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 09:59 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #600897 is a reply to message #73001] |
Thu, 13 July 2006 09:59 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.04340 seconds