Answers for "c# base constructor called automatically"

C#
3

Calling the base constructor in C#

public class MyBaseClass {
	MyBaseClass(T input) {
  		input.doSomething();
    }
}

public class MyClass : MyBaseClass {
    public MyClass() : base(input) {
        //other stuff here
    }
}
Posted by: Guest on July-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language