If i create an interface of of Invocation, like public interface IMethod implements Invocation. Then I implement them in a new class public class Method implements IMethod, IAnother. Is there any difference between using it with interface or using it standalone?

解决方案 »

  1.   

    Sorry, ublic interface IMethod extends Invocation.
      

  2.   

    in order to use multi-inherece,in the java we have to use interface.beacause java do not support multi-inherece,so when we edit code,we can use a interface to own serval classes's methods but not do with them which we can write code easily by the means of  using a class extend! at last, i want to ask you "you really don't know this,do you? "i can't say much!!
      

  3.   

    u treat yoursel like a teacher, I think that u misunderstand the main-point of this, i mean the situation set to invocation, using Proxy, and now is interface extends interface, u know i can also add the method return proxy with out body in IMethod, for the sake of invoke, it return the proxy, it can only using the method declared at interface...