M
Mats-Lennart Hansson
Hi,
I want to use interfaces, but somehow it doesn't work as I want to. I have
these compoents:
1. IClass
A component that holds an interface for a class.
2. Class : IClass
A component that holds a class that implements the IClass interface.
3. UseClass
A component that wants to use Class (this component doesn't care of the
interface)
However, when trying to compile I get an error that says my UseClass needs a
reference to the IClass component as well. Why?
Thanks,
Mats-Lennart
I want to use interfaces, but somehow it doesn't work as I want to. I have
these compoents:
1. IClass
A component that holds an interface for a class.
2. Class : IClass
A component that holds a class that implements the IClass interface.
3. UseClass
A component that wants to use Class (this component doesn't care of the
interface)
However, when trying to compile I get an error that says my UseClass needs a
reference to the IClass component as well. Why?
Thanks,
Mats-Lennart