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