Singleton objects
suggest changeIntroduction
An object is a special kind of class, declared with the object keyword. Objects are singletons, and they also play the role of the static part of a Java class. If you are coming from Java, use an object instead of a handwritten singleton or static members.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents