So a class or struct is required to implement all the methods of all the interfaces in the transitive closure of its base interfaces?
那么就是说一个class或者一个struct必须要实现其传递闭包上所有接口定义的所有方法吗?
Whenever a class or struct is created, its constructor is called.
每当创建类或结构,调用它的构造函数。
A class or struct may have instance fields or static fields or both.
类或结构可以拥有实例字段或静态字段,或同时拥有两者。
Indexers allow instances of a class or struct to be indexed just like arrays.
索引器允许类或结构的实例就像数组一样进行索引。
A method introduced in a class or struct hides properties, fields, and types, with the same name, in the base class.
引入类或结构中的方法隐藏基类中具有相同名称的属性、字段和类型。
A constant, field, property, or type introduced in a class or struct hides all base class members with the same name.
类别或结构所引入的常数、栏位、属性或型别可隐藏所有具相同名称的基底类别成员。
When a class or struct inherits an interface, it inherits only the method names and signatures, because the interface itself contains no implementations.
类或结构继承接口时,仅继承方法名称和签名,因为接口本身不包含实现。
When a class or struct is said to inherit an interface, it means that the class or struct provides an implementation for all of the members defined by the interface.
当类或结构继承接口时,意味着该类或结构为该接口定义的所有成员提供实现。
Is a class (or struct) that implements a more-derived interface also required to state in its base type list that it is implementing all of those less-derived interfaces?
一个实现了派生程度较高的接口的class或者struct必须要在其基类型列表中声明它实现了那些派生程度较低的接口吗?
Is a class (or struct) that implements a more-derived interface also required to state in its base type list that it is implementing all of those less-derived interfaces?
一个实现了派生程度较高的接口的class或者struct必须要在其基类型列表中声明它实现了那些派生程度较低的接口吗?
应用推荐