Hello all,
In a quiz I got the question: Implicit converting an interface
to a class type is never allowed. (TRUE or FALSE?)
I think it's TRUE, because classes always implement interfaces
and therefore only a class can be seen as IS-A interface. But not
the other way round.
The answer though is false and says: an interface type can be converted
to a class type, only if the class implements the interface.
I think this is right only if in the question it hadn't explicity
mentioned the
word 'implicit'.
Am I right?
Best regards,
Gian Franco Casula