- `events (OBJ)`
- `events (CLASSNAME)`
- `NAMES = events (...)`

List the events defined by the class of `OBJ` or by the class named by
`CLASSNAME`.

When called with no output argument, display the event names. Otherwise, return
the names in a cell array of strings.

See also: `notify`, `addlistener`, `metaclass`.

### References

- https://www.mathworks.com/help/matlab/ref/events.html
- https://octave.sourceforge.io/octave/function/events.html
