Keep this in mind so you don't make the mistake of thinking that all references to a class have been changed to the new interface type.
请记住这一点,不要错误地认为对这个类的所有引用都会被转换为新的接口类型。
Once created, a struct represents a new type that can then be used throughout your interface definition.
一旦创建了, struct 表示可以在整个接口定义中被使用的 新类型。
You should use typedef to create a new name for a type that will help clarify the interface or save typing.
应该使用typedef创建新的类型名称,这将帮助解释接口或保存输入。
应用推荐