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