Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.02.07;
Скачать: CL | DM;

Вниз

ООП в Delphi   Найти похожие ветки 

 
_SnAke_ ©   (2002-01-22 00:31) [0]

Есть два вопроса:
1 - Чем отличаются директивы virtual и dynamic
2 - Чем отличаются default и nodefault свойства


 
Mbo ©   (2002-01-22 07:04) [1]

найди статьи Трепалина ( на compress.ru, interface.ru и еще где-то в сети), там довольно толково


 
Digitman ©   (2002-01-22 09:03) [2]

Это - Delphi HELP :

1.
"Virtual versus dynamic

Virtual and dynamic methods are semantically equivalent. They differ only in the implementation of method-call dispatching at runtime. Virtual methods optimize for speed, while dynamic methods optimize for code size.

In general, virtual methods are the most efficient way to implement polymorphic behavior. Dynamic methods are useful when a base class declares many overridable methods which are inherited by many descendant classes in an application, but only occasionally overridden.
"

2.
"If a class has a default property, you can access that property with the abbreviation object[index], which is equivalent to object.property[index]. For example, given the declaration above, StringArray.Strings[7] can be abbreviated to StringArray[7]. A class can have only one default property"


 
Digitman ©   (2002-01-22 09:05) [3]

Или еще и перевести тебе ?



Страницы: 1 вся ветка

Текущий архив: 2002.02.07;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.01 c
6-18947
AlexH
2001-11-15 14:31
2002.02.07
Winpopup


3-18699
Jan
2002-01-09 14:40
2002.02.07
Файл *.qrp


1-18906
Alexfdfdfd
2002-01-24 00:47
2002.02.07
Народ , всё бы хорошо , но экзешники слишком велики.


1-18879
KIR
2002-01-22 12:04
2002.02.07
Раскраска строк грида в нестандартные цвета?


1-18861
Fellomena
2002-01-21 11:30
2002.02.07
Объясните в чём ошибка (надеюсь не в ДНК ;)