All we have to do is declare an init block inside the companion object of a class. This way, we get the same behavior as Java's static block.
確定! 回上一頁