Companion objects are singletons with properties and functions related to a class but not to its instance — similar to the “static” keyword in Java but with a twist.