Patrick He
Posts: 2
Nickname: patrickhe
Registered: Sep, 2005
|
|
Re: Iterface method name?
|
Posted: May 12, 2006 1:05 AM
|
|
"if an interface inherits more than one method with the same signature, or if a class implements different interfaces containing a method with the same signature, there is only one such method. The implementation of this method is ultimately defined by the class implementing the interfaces, and there is no ambiguity there. If the methods have the same signature but different return types, then one of the return types must be a subtype of all the others, otherwise a compile-time error occurs. The implementation must define a method that returns that common subtype."
-- from Java Programming Language, 4th Edition : 4.3.2
|
|