Sobes.tech
Junior — Senior

Initialization sequence of companion object, init blocks, and secondary constructor

livecode

Task condition

It is necessary to determine the order in which messages are displayed when creating an instance of the Habr class, taking into account the initialization of the companion object, execution of all init blocks, calling the secondary constructor, and the searchMagnit method. The initialization of the companion object occurs only once upon the first access to the class. The property name is not requested.