inheriting ctors?
dcoder
dcoder at devnull.com
Thu Aug 5 10:53:20 PDT 2010
Suppose I have a base class with many ctors().
I want to inherit from the base class and make one slight alteration to it,
but I don't want to write X times the following:
this(args) {
super(args);
}
Does D have an easy way for the derived class to 'inherit' all or some of the
base class ctors(), and just override/add ctors() in the derived class?
In Java, we can use eclipse to auto-generate code for us. :) But,
the results look cluttered, and it's really not a solution.
Anyways, just curious.
thanks.
More information about the Digitalmars-d-learn
mailing list