What Is a Singleton?

An introduction to the singleton design pattern and common implementations

Devin Soni
Better Programming
Published in
2 min readJul 31, 2019

--

Photo by Safar Safarov on Unsplash

Introduction

The singleton design pattern restricts the instantiation of a class to a single instance. This is done in order to provide coordinated access to a certain resource, throughout an entire software system. Through this design pattern, the singleton class…

--

--