C# CONCEPTS

Design Pattern - Singleton

Gang of Four - Singleton design pattern ensures that a particular class has only one instance/object and a global access point.

Sukhpinder Singh | C# .Net
.Net Programming
Published in
2 min readMay 30, 2021

--

Photo by Sebastian Voortman from Pexels

Prerequisites

  • Basic knowledge of OOPS concepts.
  • Any programming language knowledge.

The article demonstrates the usage of singleton design patterns using the C# programming language. So, to begin with, C#

Learning Objectives

  • How to code using a singleton design pattern?

Getting Started

Singletons classes are used to eliminate instantiating of more than one object of a particular class.

--

--