Plange


create a type

syntax

"type" {IC} ["inheriting" {IC} INHERITANCE_LIST {IC}] ["implementing" {IC} INHERITANCE_LIST {IC}] "{" TYPE_SCOPE "}"

Example

bank_account := type inheriting account {
    <float> balance @ 0;
};

copyright © Brent Lewis 2017