मदद की Forward Declarations and Mutually Dependent Classes
दस्तावेज़ देखें।
type (* start type section - one unified section "to rule them all" *)
TAsyncPopulator = class; (* forward declaration *)
TThreadPopulator = class(TThread)
private
_owner:TASyncPopulator;
end;
TAsyncPopulator = class (* final declaration - WITHIN that very section where forward declaration was made *)
private
_updater: TThreadPopulator;
end;
स्रोत का उपयोग करें, ल्यूक! आपके डेल्फी इंस्टॉलेशन में पढ़ने और देखने और सीखने के लिए आपके पास पूर्ण वीसीएल और आरटीएल स्रोत हैं। और यह इस टेम्पलेट का बहुत उपयोग करता है। हर बार जब आप खुद से पूछते हैं कि "मैं इसे कैसे कर सकता हूं", बस सोचें कि "बोर्लैंड ने ऐसा कैसे किया" और सुंदर मौका है कि आप डेल्फी द्वारा प्रदत्त स्रोतों में पहले से ही तैयार किए गए उदाहरण प्राप्त कर सकते हैं।
स्रोत
2012-10-22 06:09:50
उचित प्रलेखन यहाँ है: http://docwiki.embarcadero.com/RADStudio/XE2/en/Classes_and_Objects# Forward_Declarations_and_Mutually_Dependent_Classes –