理解對象賦值給接口

因此說只實現接口的部分方法 != 實現該接口------那麼就不能夠將對象賦值給該接口web package main import "fmt" type Animal1 interface { say() } type Animal2 interface { color() } type felid interface { Animal1 Animal2 } type cat s
相關文章
相關標籤/搜索