phper進階之路--- Go 接口編程 組合

1、接口的組合     (1)接口之間可以嵌套接口,使某個接口同時具備多個接口的功能,類結構體只需要實現接口的方法就可以了    (2)接口的組合:             A、type A interface {  Post(url)string ;}                    type B interface  {  Get (url) string ;}         超級接口
相關文章
相關標籤/搜索