IPB

> virtual (procedure directive)
Форум
Загрузка...
 
Час быка
Час быка
Карта Интернета
Internet Map
Яндекс.Метрика

Language:
Русский
English

 virtual (procedure directive)


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

Syntax

 procedure Method(<parameter list>); virtual;

Remarks

Declaring a method as virtual makes it possible for methods with the same name to be implemented in different ways within a hierarchy of object types.

To make a method virtual, follow its declaration in the object type with a semicolon, the reserved word "virtual", and another semicolon, like this:

 procedure Method(param1, Param2: Integer); virtual;

See Also

 
 К началу страницы 
Тэги: virtual
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 


-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"