 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jack Guest
|
Posted: Wed Jul 12, 2006 2:23 am Post subject: OOP Problem |
|
|
I have been away from OOP too long. The following generates an access
violation at the place indicated by <-- below. If I remove the
"virtual" qualifier, it works, but then I cannot write override
versions of the method (which I need).
Wonder if a compiler directive may be the problem?
tks,
Jack
type
tTestClass = class
procedure GetReady;
procedure DoAction; virtual;
end;
var TestClass : tTestClass;
implementation
procedure tTestClass.GetReady;
begin
ShowMessage( 'Getting Ready...' );
DoAction // <-- Access violation here
end;
procedure tTestClass.DoAction;
begin
ShowMessage( 'Doing the action...' );
end; |
|
| Back to top |
|
 |
Riki Wiki Guest
|
Posted: Wed Jul 12, 2006 3:05 am Post subject: Re: OOP Problem |
|
|
Hoi Jack
Your question is more fitting for the newsgroup
b.p.d.language.delphi.general, try to repost the question there, and do
the repost to the Borland news server to make everybody see your message.
Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups> |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|