Dynamic Methods


  Dynamic Methods

A dynamic method is a method whose call is linked to its code at run time by a process called late binding.

It differs from a virtual method in that its declaration includes a dynamic method index.


 procedure MethodName (<parameter list>); virtual DynamicMethodIndex


DynamicMethodIndex is an integer, an integer constant, or an expression that evaluates to an integer.

Like virtual methods, dynamic methods allow methods with the same name to be implemented in different ways up and down a hierarchy of object types. If you derive types from other types with many virtual methods, using dynamic methods might require less memory.

Тэги: Methods
| G+
Код для вставки: :: :: :: ::
Поделиться: // //