K
Ken
Hi. Let's say class A only references class B without using any of
its methods (e.g., it takes an instance of B as a parameter and sticks
it on a collection as an object). In C++, I would have A's header file
contain a forward reference to B (as opposed to including B.h). That
way A wouldn't have a dependency on B's method signatures.
Is there an equivalent way to do this in Java?
Thanks for any input,
Ken
its methods (e.g., it takes an instance of B as a parameter and sticks
it on a collection as an object). In C++, I would have A's header file
contain a forward reference to B (as opposed to including B.h). That
way A wouldn't have a dependency on B's method signatures.
Is there an equivalent way to do this in Java?
Thanks for any input,
Ken