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 

In Delphi 8 does <implements> keyword not function anymore?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Liviu Uba
Guest





PostPosted: Mon Jan 26, 2004 12:12 pm    Post subject: In Delphi 8 does <implements> keyword not function anymore? Reply with quote



In Delphi 8 does <implements> keyword not function anymore?
Example:

type
IMyInterface = interface
['{5ADDDDA1-52DD-4638-9E94-D0B1B80EFE9C}']
procedure Test;
end;

TMyObject = class( TComponent, IMyInterface )
procedure Test;
end;

TMyTestUser = class( TComponent, IMyInterface )
protected
FMyObject : TMyObject;
public
---> property MyObject : TMyObject read FMyObject implements
IMyInterface; <--- compiler error !!
end;

compiler fails at marked line with error: " ; expected but "implements"
found"

This is a basic functionality and in D8 help we have also an example of it
What is to do ?














Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design 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.