My child class constructor has the same logic with the Parent class constructor, Is it possible that even my child constructor is omitted but my child class can run parent's constructor automatically?
Example:
public class parent {
public parent(string id) {
this.Id = id;
}
}
public class child : parent
{
public child(string id):base(id){
}
}
I do not want the constructor child(string id).
Is there any solution for this?