Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
ItemForSaleSingleton.java
ItemForSaleSingletonTest.java
README.md

README.md

DESIGN PATTERN - SINGLETON

TYPE - CREATIONAL

The Singleton pattern

The Singleton pattern ensures a class has only one instance, and provides a global point of access to it.

Examples of the Singleton Pattern in the JDK include

java.lang.Runtime#getRuntime() java.awt.Desktop#getDesktop()