2010-08-21, 09:13 AM
I'm not sure I understand the problem.
If foo has an object bar, then naturally whenever the public interface of bar changes, foo will need to be recompiled or possibly recoded.
To decrease the coupling you can use a virtual class vbar, which has whatever features of bar foo uses, and from which bar inherits. The public interface of vbar will hopefully not change anywhere near as often as bar's will.
If foo has an object bar, then naturally whenever the public interface of bar changes, foo will need to be recompiled or possibly recoded.
To decrease the coupling you can use a virtual class vbar, which has whatever features of bar foo uses, and from which bar inherits. The public interface of vbar will hopefully not change anywhere near as often as bar's will.

