Tips about Object-oriented programming

Posted on 2013-08-12 20:28  chayu3  阅读(106)  评论(0编辑  收藏  举报

1, Return subinterface

For example, we have a parent interface:

public interface A<T extends A<T>> {

T method1(int value);

}

Then we have subinterface:

public interface B