The reason is that the base class
Decorator
does not contain a
parameter less
constructor i.e. a constructor which takes 0 arguments.
When the constructor of this
derived class
is called it will call the parameter less constructor of the base class as there is no explicit call to the constructor of the base class and since there is no parameter less constructor in the base class the above error occurs.
To avoid this error call the constructor of the base class with appropriate arguments as required for the constructor available in the base class as shown below:
protected ScrollDecorator(Decorator _decorator) : base(Arguments)
{
this.decorator = _decorator;
}