BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OOP Problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Jack
Guest





PostPosted: Wed Jul 12, 2006 2:23 am    Post subject: OOP Problem Reply with quote



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





PostPosted: Wed Jul 12, 2006 3:05 am    Post subject: Re: OOP Problem Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.