Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.011 c
3-18712
Bura
2002-01-10 00:44
2002.02.07
IB


6-18934
SemFLY
2001-11-13 20:21
2002.02.07
Какая команда в Windows разрывает соединение с интеренетом ?


1-18889
Vtt
2002-01-23 17:43
2002.02.07
помогите конвертировать имя файла в ДОСовское


3-18783
Val
2002-01-14 11:17
2002.02.07
Коннект к базе


6-18924
Arseny
2001-11-12 20:59
2002.02.07
Client-Server




   Наверх