reference to an interface

Ryan Steen Ryan_member at pathlink.com
Thu Apr 13 12:07:37 PDT 2006


In article <e1eeql$e2o$1 at digitaldaemon.com>, Chris Nicholson-Sauls says...
>
>Quite actually, as I believe we have return type covariance for interfaces,
>you can in fact define the factory method in the interface.

Yes, but the defintion is useless until the class implementing the interface is
instantiated. That counters the notion of a factory reachable through the
interface.

I have to revert to a simple "new", but then I do not need any factory? 





More information about the Digitalmars-d-learn mailing list