Sam02/09/2022, 12:56 PM
method on an enum isn't actually a member of its companion object. (If it was, you wouldn't be able to define a new companion object, because there would already be one).
method in the companion object, but it won't override the built-in one.
will always resolve to the built-in method and will ignore the one in the companion object.
LastExceed02/09/2022, 1:34 PM
Sam02/09/2022, 1:35 PM