美文网首页
java 别人想实现我的接口调用里面的方法并传给我两个参数我该怎

java 别人想实现我的接口调用里面的方法并传给我两个参数我该怎

作者: 渔农 | 来源:发表于2017-01-11 02:29 被阅读0次

public interface MyIntreface {

public void doSomething(Object param1, Object param2);

}

public class MyIntrefaceImpl implements MyIntreface {

public void doSomething(Object param1, Object param2){

System.out.println("doSomething() by "+param1+", "+param2 );

}

}

相关文章

网友评论

      本文标题:java 别人想实现我的接口调用里面的方法并传给我两个参数我该怎

      本文链接:https://www.haomeiwen.com/subject/yfilbttx.html