While a class can have only one direct base class, it is permissible for an interface to directly derive from multiple interfaces.
虽然一个类只能有一个直接基类,但是一个接口可以直接从多个接口派生。
For reference types, an implicit conversion always exists from a class to any one of its direct or indirect base classes or interfaces.
对于引用类型,隐式转换始终存在于从一个类转换为该类的任何一个直接或间接的基类或接口的情况。
Speaking of base classes, it is important to keep in mind that the . NET platform demands that a given class have exactly one direct base class.
说到基类,要记住很重要的一点:.NET平台要求一个类只能有一个直接基类。
A derived-class member with the same name as a member of the base class hides direct access to the base-class member.
当派生类的成员和基类成员名字相同时,派生类的成员屏蔽了对基类此成员的直接访问。
If a class inherits from another class, the methods and members of the base class are available to users of the derived class as if they were direct members of the derived class.
如果一个类是从另一个类继承的,则派生类的用户可以使用基类的方法和成员,就如同这些成员是派生类的直接成员一样。
If a class inherits from another class, the methods and members of the base class are available to users of the derived class as if they were direct members of the derived class.
如果一个类是从另一个类继承的,则派生类的用户可以使用基类的方法和成员,就如同这些成员是派生类的直接成员一样。
应用推荐