The :base syntax is a way for a derived type to bind to the constructor of a base class that takes the specified argument. If omitted, the compiler will silently try to bind to the constructor of the base class, which takes 0 arguments.
class Parent { protected Parent(int id) { } } class Child1 : Parent { internal Child1() {
There is also a syntax :this , which allows you to bind constructors to the same type with the specified list of arguments
Jaredpar
source share