A method
is a procedure or function associated with a class. A call to a method
specifies the object (or, if it is a class method, the class) that the method
should operate on. For example,
SomeObject.Free
calls the Free method in SomeObject.
Method declarations
and implementations
Procedures
and functions: Overview
方法就是与类相关联的过程或函数。方法调用指定了方法要作用的对象(或者,如果是一个类方法,那么指定的是类)。例如:
SomeObject.Free
上面的语句调用了对象 SomeObject 中的 Free 方法。