想法源于:类可以提前声明,具体类内容可以后面写明;
TFrmChangePWTransparent = class;
//这里声明其他的类,或一些表里
TFrmChangePWTransparent = class(TForm)
end;
构思:一个包写好好多类名,然后在另一包写好具体类的属性方法,但是后来发现这是不可以的
type
TProtocolUniITPFrameDataBuilder = class;
TProtocolUniITPFrameDataStreamBuilder = class;
TProtocolUniITPFrameDataBufferBuilder = class;
TProtocolUniITPFrameDataBufferedBuilder = class;
TProtocolUniITPFrameDataBuilderClass = class of TProtocolUniITPFrameDataBuilder;
TProtocolUniITPFrameDataBuilder = class(TBaseProtocolFrameDataBuilder)
private
FAttribute : PProtocolUniITPFrameHeaderAttribute;
protected
function GetDataSize : Cardinal;override;
end;