Originale-mail to me for new edition

 

Method binding

 

Methods can be static (the default), virtual, or dynamic. Virtual and dynamic methods can be overridden, and they can be abstract. These designations come into play when a variable of one class type holds a value of a descendant class type. They determine which implementation is activated when a method is called.

Static methods

Virtual and dynamic methods

Abstract methods

 

Topic groups

 

See also

Methods: Overview

 

 

译文

 

方法绑定

 

方法可以是静态的(static)(缺省情况下)、虚拟的(virtual)或动态的(dynamic)。虚拟方法和动态方法可以被覆盖(overridden),并且可以是抽象的(abstract)。当一个类类型的变量保存了后裔类的值时,这些指示进入并影响到其后裔类的行为。

静态方法

虚拟方法和动态方法

抽象方法

 

主题组

 

相关主题

方法:概述