Automatically making Base Constructors available in derived class?
问题 I have a Base Class with two constructors, requiring a parameter: public abstract class StoreBase { private readonly SomeObject_sobj; protected StoreBase(SomeObject sobj) { _sobj = sobj; } protected StoreBase(OtherObject oobj) { _sobj = new SomeObject(oobj); } } Then I have a derived class: public class MyDerived: StoreBase { } This causes a compilation error as base class doesn't contain parameterless constructor . My understanding is that because MyDerived doesn't contain a constructor, the