Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2002.04.22;
Скачать: [xml.tar.bz2];

Вниз

object pascal   Найти похожие ветки 

 
danik   (2002-04-08 21:47) [11]

Each of following programs has one missed keyword at one or some places. If we add this keyword we"ll see corresponding text "TA" in a message box on program execution. One and only one message box will be shown. Please write down the keyword and line number(s) where it should be for each program.

A01 program Project10;
A02
A03 uses
A04 Unit10 in "Unit10.pas",
A05 Unit11 in "Unit11.pas";
A06
A07 type
A08 TC = class (TB)
A09 public
A10 procedure f1; override;
A11 end;
A12
A13 procedure TC.f1;
A14 begin
A15 inherited;
A16 end;
A17
A18 var q : TA;
A19 begin
A20 q := TC.Create;
A21 try
A22 q.f1;
A23 finally
A24 q.Free;
A25 end;
A26 end.



--------------------------------------------------------------------------------

B01 unit Unit10;
B02 interface
B03 type
B04 TA = class
B05 public
B06 procedure f1; virtual;
B07 end;
B08
B09 implementation
B10 uses Dialogs;
B11
B12 procedure TA.f1;
B13 begin
B14 ShowMessage("TA");
B15 end;
B16
B17 end.


--------------------------------------------------------------------------------

C01 unit Unit11;
C02 interface
C03 uses Unit10;
C04 type
C05 TB = class (TA)
C06 public
C07 procedure f1; override;
C08 end;
C09
C10 implementation
C11 uses Dialogs;
C12
C13 procedure TB.f1;
C14 begin
C15 ShowMessage("TB");
C16 end;
C17
C18 end.




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

Форум: "Основная";
Текущий архив: 2002.04.22;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.007 c
1-69838
DeMoN-777
2002-04-11 04:14
2002.04.22
ListBox


3-69700
KAA
2002-03-29 12:49
2002.04.22
2000 Заполнить столбец таблицы


1-69923
Vlad_Leon
2002-04-09 08:41
2002.04.22
Как сменить раскладку клавиатуры?


1-69850
Григорий
2002-04-06 00:43
2002.04.22
Немецкий алфавит


3-69734
michael_B
2002-03-30 21:20
2002.04.22
какие *.dll мне нужно перенести на машину заказчика, где вдруг





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский