The derived classes have the same dynamic class attributes of the base class.
派生类具有跟基类相同的动态类属性。
The new derived classes should be able to replace the base classes without any change in the code.
新的派生类应该能够替换基础类而无需修改代码。
Another use of abstract classes is to create a single base class for multiple derived classes in which that base class should never be instantiated.
抽象类的另一个用途是为多个派生类创建一个基类,在这些派生类中,基类决不会被实例化。
In other words, you should use a custom metaclass only when your real intention is to have code running on derived classes without users of those classes noticing it.
换句话说,只有当想在派生类上运行代码,又不想让用户注意到时,才应该使用自定义元类。
The basic rules of the JVM are still at work: derived classes of Person have to pass something up to the base class when constructed, regardless of what the language insists.
JVM的基本规则依然有效:Person的继承类在构造时向基类传递某些内容,而不管语言强调的是什么。
It is not visible to derived classes.
对派生类不可见。
You are defining polymorphic derived classes.
您要定义多态性派生类。
Therefore derived classes must provide their own implementation.
因此,衍生类别必须提供自己的实作。
Ensure that all derived classes implement similar protection or are sealed.
确保所有派生的类实现类似的保护或被密封。
This saves the derived classes from having to redefine the common elements.
这样派生类将不必重新定义这些公共元素。
Ensures that all finalization code in derived classes is marked as critical.
确保派生类中的所有终止代码均标记为关键。
Discusses changes in the way private virtual functions are handled in derived classes.
讨论在派生类中处理私有虚函数的方式的更改。
Private members in base classes are inherited but are not accessible from derived classes.
基类中的私有成员被继承,但不能从派生类访问。
In such a case, you want the consuming code to create objects only from the derived classes.
此时,您需要让使用代码仅从派生类创建对象。
Often in a design, you want the base class to present only an interface for its derived classes.
经常在设计过程中,你想要基础类只把接口提供给衍生类。
Limit the scope of accessibility to the class, assembly, or derived classes, if they can be trusted.
如果可以信任类、程序集或派生类,则限制它们的可访问性的范围。
I decided to give all my CEdit-derived classes a common base class for any common methods they may need.
我决定写个通用基类,把任何常用的需要的方法放到基类里。
Member is visible only within the class in which it is declared and to any derived classes of that class.
成员仅在声明它的类内可见,并对该类的任何派生类可见。
In derived classes, you can override virtual methods, thus changing the internal behavior of the component.
在衍生类中,您可以替代虚拟方法,从而改变组件的内部行为。
In such a case, you want the element to be accessible both from the base class and from all derived classes.
在这种情况下,您希望可从基类和从所有派生类均可访问该元素。
In single-table inheritance, there is a single database table that contains columns for both base and derived classes.
在单表继承中,一个数据库表同时包含基类和派生类的列。
This named parameter specifies whether the indicated attribute can be inherited by derived classes and overriding members.
该命名参数指定所指示的特性能否由派生类和重写成员继承。
Functions that use Pointers or references to base classes must be able to use objects of derived classes without knowing it.
使用基类对象指针或引用的函数必须能够在不了解衍生类的条件下使用衍生类的对象。
Inheritance modifiers control how methods and properties from derived classes override methods and properties in a base class.
继承修饰符控制派生类的方法和属性如何重写基类中的方法和属性。
This method does not need to be called by users, except in derived classes where this method has been overridden and implemented.
除了在已重写和实现此方法的派生类中以外,用户不需要调用此方法。
This paper introduces the definition and denotation of classes in DOOD, then discusses the derived classes created by rules based on them.
文中给出了在DOOD中类的定义和表示,并以此为基础介绍了利用规则生成派生类。
The following simple example shows the standard way to declare events in a base class so that they can also be raised from derived classes.
以下简单示例演示了在基类中声明可从派生类引发的事件的标准方法。
This class is used by derived classes to instantiate security algorithm suites, and contains properties that describe the security algorithms.
派生类使用此类实例化安全算法组,并且此类还包含描述安全算法的属性。
There are methods that are not supported in the base class, with the expectation that these methods will be supported in the derived classes instead.
有些方法在基类中不受支持,但是这些方法将在派生类中受到支持。
The base class does not need to provide any functionality common to all the derived classes, but it can serve as a filter for assigning values to variables.
此基类无需提供所有派生类所共同拥有的任何功能,但它可以作为一个筛选器,将值分配给变量。
应用推荐