only one companion object is allowed per class in Kotlin

Viewed 7560

I was switching from Java to kotlin for Android Devlopment. When I searched about equivalent of Java static methods in Kotlin, I found that companion object is. But the problem is while creating more than one static methods in kotlin. I get these errors only one companion object is allowed per class.

3 Answers
Related