Singleton objects

suggest change

Introduction

An object is a special kind of class, which can be declared using object keyword. Objects are similar to Singletons (a design pattern) in java. It also functions as the static part of java. Beginners who are switching from java to kotlin can vastly use this feature, in place of static, or singletons.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents