LANGUAGE

base constructor initializer

Passes arguments to an accessible base constructor.

Formal Syntax & Structure

csharp syntaxcsharp
Derived(int x) : base(x) { }

Working Example

Example Snippetcsharp
public ExpressDelivery(int boxes) : base(boxes) { }
C# & .NET Reference