Previous: 2.2.13.6. Public and Private declarations To the Table of Contents Next: 2.2.13.8. Constructors
2.2.13.6. Public and Private declarations Table of Contents 2.2.13.8. Constructors

- 2.2.13.7. -
Table of Contents
2. TMT Pascal Language Description
2.2. Pascal Language Structure
2.2.13. OOP Extensions
2.2.13.7. Virtual Methods


2.2.13.7. Virtual Methods


Methods can be either static or virtual. Calls to static methods are resolved at compilation. Calls to virtual methods are resolved at run time with delayed or late binding. By default the methods are static; virtual methods contain a special keyword virtual as part of their declaration. Static methods can be overridden without restrictions. However, virtual method override must be done by a method that uses exactly the same syntax, e.g. has the same number and types of the arguments. Objects that contain virtual methods require building a special jump table, called the Virtual Method Table (VMT). The VMT is created during the initialization of the object through a constructor call.


Previous: 2.2.13.6. Public and Private declarations To the Table of Contents Next: 2.2.13.8. Constructors
2.2.13.6. Public and Private declarations Table of Contents 2.2.13.8. Constructors

- 2.2.13.7. -