A.I, Data and Software Engineering

Tagcompanion object

How to create Static Members for a Kotlin class


Kotlin programming language Most of the programming language have concepts where classes can have static members. Namely — fields that are only created once per class and can be accessed without an instance of their containing class. Kotlin doesn’t support static keyword. It means that you can’t create a static method and static variable in Kotlin class. Fortunately, Kotlin object can handle this...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.