I want to create two classes A and B which are mutually dependent. Let us say, the requirement is that A's constructor needs an object of type B as argument and B's constructor needs an object A as argument.
In C++, I can use forward declaration and still have declartions of both A and B in different *.c files.
But in Delphi is it necessary that if I use forward declaration, both A and B should be in the same Unit? Is there any workaround to have two mutually dependent class in two Units? Or is it impossible?
regards and thanks