Skip to content

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.

mofutakwalo Leina { ... }
A class with a constructor
mofutakwalo Sediko {
  motlhophisi(r) {
    ye.r = r;
  }
}

motlhophisi, Ntsha, ye