How To Declare Singletons In Kotlin

Singleton is a very popular and widely used design pattern in software engineering. It restricts to have only one instance for a class. Singleton introduces a global state into an application. Singleton is often implemented…

Read more

Multiple Constructors In Kotlin

In some cases when we need to use a class with different objects as its constructor argument. In such case we have to create multiple constructors. In Kotlin there is a predefined constructor called primary…

Read more