理解对象赋值给接口

因此说只实现接口的部分方法 != 实现该接口------那么就不能够将对象赋值给该接口web package main import "fmt" type Animal1 interface { say() } type Animal2 interface { color() } type felid interface { Animal1 Animal2 } type cat s
相关文章
相关标签/搜索