3 ms·A class with a single function can also be nicely modelled as a function.by iFreilicht 5y agoA class with a single function can also be nicely modelled as a function.gorgoiler 5y agoAhem, encapsulation of both data and code :)