Interface question

xs0 xs0 at xs0.com
Wed Aug 30 01:58:50 PDT 2006


> I guess what I'm going to need to do is derive everything from a common 
> ancestral class...and that means that the derived classes CAN'T descend 
> from anything else, *sigh*.  The common ancestor will need to be a 
> totally abstract class, so I thought an interface would be a better 
> choice, but it looks like there's no way to make it work...because 
> they've all got to implement a common constructor type, and the compiler 
> has to KNOW that they do so.

Hmm.. why exactly do you need a common constructor type? When you create 
an object, you must know its exact type (and constructors) anyway, so 
how does it matter?


xs0



More information about the Digitalmars-d-learn mailing list