Lex,
If class A & Class B are separate projects, I would recommend the Separated
Interface pattern.
http://www.martinfowler.com/eaaCatal...Interface.html
Project C would define Interface C that is implemented by Class A and
consumed by Class B. Project A would Reference Project B & C, while Project
B would only reference Project C. When Class A created an instance of Class
B it would pass its 'this' as Interface C.
The others have indicated how to if they are in the same projects.
Remember that the GC will correctly clean up both objects if no other
objects are referring to them other then themselves...
Hope this helps
Jay
"Lex" <de**@homerlex.mailshell.com> wrote in message
news:c5*************************@posting.google.co m...
How can I compile two classes from the command line that reference each
other?
Class A referenced Class B and Class B references Class A.
Regards