完
完颜康
Unregistered / Unconfirmed
GUEST, unregistred user!
Type
IMyInterface = interface
Procedure P1;
procedure P2;
end;
Type
TMyImplClass = Class
Procedure P1;
procedure P2;
end;
Type
TMyClass = (TInterfaceObject,IMyInterFace)
FMyImplClass : TMyImplClass;
property MyImplClass :TMyImplClass read FMyImplClass implements IMyInterface
procedure ImyInterface.p1= MyP1
Procedure MYp1;
end;
var Myclass :TMyClass
MyInterface :ImyInterface ;
begin
MyClass := TMyClass.create;
MyClass.FMyImplclass := TMyImplClass.Create;
MyInterface.P1;//1
MyInterface.P2;//2
请问1、2处分别调用哪个过程?为什么这么调用?
也可以关于这个主题随便说说...
IMyInterface = interface
Procedure P1;
procedure P2;
end;
Type
TMyImplClass = Class
Procedure P1;
procedure P2;
end;
Type
TMyClass = (TInterfaceObject,IMyInterFace)
FMyImplClass : TMyImplClass;
property MyImplClass :TMyImplClass read FMyImplClass implements IMyInterface
procedure ImyInterface.p1= MyP1
Procedure MYp1;
end;
var Myclass :TMyClass
MyInterface :ImyInterface ;
begin
MyClass := TMyClass.create;
MyClass.FMyImplclass := TMyImplClass.Create;
MyInterface.P1;//1
MyInterface.P2;//2
请问1、2处分别调用哪个过程?为什么这么调用?
也可以关于这个主题随便说说...