A companion object is an object
declared inside of a class with the additional companion
keyword. For Java developers, a companion object is roughly analogous to having static
methods on the class.
You can learn more about this in:
Tags: