Contrary to a class, an object can’t have any constructor, but init blocks are allowed if some initialization code is needed.Kotlin singletons with argument4.4K31Christophe BeylsEugen PechanecFollowAug 29, 2017 · 1 min readObjects have one no-arg constructor. Init block is part of that constructor.