Calling a constructor in an abstract class is equivalent to trying to instantiate an abstract class, which is impossible (you cannot create instances of abstract classes).
What you need to do is create an instance of the derived class and declare its constructor so that it calls the base constructor, as in:
public class DerivedClass : AbstractClass { public DerivedClass() : base() { .... } }
Full example:
public abstract class Abstract { public Abstract() { Console.WriteLine("Abstract"); } } public class Derived : Abstract { public Derived() : base() { Console.WriteLine("Derived"); } } public class Class1 { public static void Main(string[] args) { Derived d = new Derived(); } }
Result of this
Abstract Derived
source share