motlhophisi
The special method that initializes new class instances.
Define a motlhophisi inside a mofutakwalo block to set up the initial state of every new instance created with Ntsha.
Syntax
Section titled “Syntax”motlhophisi(diparamethara) { ... }Examples
Section titled “Examples”mofutakwalo Sediko {
motlhophisi(r) {
ye.r = r;
}
}