parent

Declares a parent type for inheritance.

Target language

Signature

1parent parent_type

Declares a parent type for inheritance.

parent is part of the core language syntax. parent belongs to the object model. Use type constraints to document the value you expect and member syntax when behavior naturally belongs to an object.

Examples

Basic call

1parent base_type
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.