Dynamic Lazarus method and virtual method

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

The dynamic method and the virtual method respectively in Delphi.:

The dynamic method

   When the need to call the parent class, the ancestor is covered by the method of the time, is to find the inheritance tree, when found, call. Reduced VMT usage, but call slowly.

Virtual method

   Different and dynamic methods, pointer records the overridden method.


Treatment of Lazarus are unified into a virtual method. That said, Lazarus does not exist real dynamic method. Exchange time with space, accelerate the execution speed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Alan at February 18, 2014 - 10:19 PM