Its causing problems when 2 seperate class uses each other in same or seperate ctl files.
How should I avoid this problem ?
Circular Dependency
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Circular Dependency
Why do your classes depend on each other?
Because with the current information I could only answer, redesign your software.
Here are some suggestions, but (in your case) there could be better suggestions.
1. Move common code to a new class
2. Implement an 'interface' class, derive 1 class from this interface and use this interface in the other class
Because with the current information I could only answer, redesign your software.
Here are some suggestions, but (in your case) there could be better suggestions.
1. Move common code to a new class
2. Implement an 'interface' class, derive 1 class from this interface and use this interface in the other class