mofutakwalo
Declares a class — a blueprint for creating objects.
Classes group data and behaviour together. Define a constructor with motlhophisi to set up new instances, and create instances with Ntsha.
Syntax
Section titled “Syntax”mofutakwalo Leina { ... }Examples
Section titled “Examples”mofutakwalo Sediko {
motlhophisi(r) {
ye.r = r;
}
}