将派生类的方法声明为接口嵌入到基结构体中,派生结构体声明该接口为自身。
转载于:https://www.cnblogs.com/lgh344902118/p/10738133.html
将派生类的方法声明为接口嵌入到基结构体中,派生结构体声明该接口为自身。
转载于:https://www.cnblogs.com/lgh344902118/p/10738133.html