SyntaxFix
Write A Post
Hire A Developer
Questions
By default compiler tries to call parameterless constructor of base class.
In case if the base class doesn't have a parameterless constructor, you have to explicitly call it yourself:
public child(int i) : base(i){ Console.WriteLine("child");}
Ref : Constructor calling hierarchy during inheritance