#kotlin-multiplatform
Read more stories on Hashnode
Articles with this tag
A singleton class is a user-defined class in a way that only one instance of the class can be created and used everywhere. Without a singleton,...
In Kotlin, an object can only be created when it is called, otherwise no object creation The lazy () block fun main() { val bookInstance1 =...
fun main(){ println(Car.getInfo()) } class Car(){ companion object{ fun getInfo() : String { return "Mahindra XUV 300" ...