method
Also written: methods
A function written inside a class, which can use the object's properties directly. `label()` in `Cafe` is a method.
Also written: methods
A function written inside a class, which can use the object's properties directly. `label()` in `Cafe` is a method.