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