So, I have the following parent class;
class Parent {
public Parent() {
Console.WriteLine ("Parent class")
}
}
And the following child class;
class Child : Parent {
public Child() {
Console.WriteLine("Child class")
}
}
I know that the constructor of the Child
class automatically calls : base()
(or however you call the constructor of the parent from inside the child class). Is there a way to get all of the static functions of the parent without initializing it? (maybe using interfaces?) What would be the way to call the parents constructor from inside the child class (maybe with certain arguments)?
Thanks.