Ntsha
SETSWANA TRANSLATION: Creates a new instance of a class.
SETSWANA TRANSLATION: Use Ntsha followed by a class name and arguments to create a fresh object based on that class. The class’s motlhophisi runs to set up the new instance.
SETSWANA TRANSLATION: Syntax
SETSWANA TRANSLATION: Section titled “SETSWANA TRANSLATION: Syntax”SETSWANA TRANSLATION: Ntsha Leina(diparamethara)SETSWANA TRANSLATION: Examples
SETSWANA TRANSLATION: Section titled “SETSWANA TRANSLATION: Examples”mofutakwalo Sediko {
motlhophisi(r) {
ye.r = r;
}
}
diri s = Ntsha Sediko(50);