Sitemap
Any Programming

Practical software engineering across every stack from C# and .NET to Python, TypeScript, Go, and Rust. Hands-on tutorials, system design, design patterns, DevOps, and AI-assisted development, with working code you can actually run. By developers, for developers.

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.

2 min readMay 30, 2021

--

Press enter or click to view image in full size
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.

--

--

C# .Net developer 👨‍💻 who's 100% convinced my bugs are funnier than yours. 🐛💥 #BugLife Pubs: https://medium.com/c-sharp-programming

See more from me

Published in Any Programming

Practical software engineering across every stack from C# and .NET to Python, TypeScript, Go, and Rust. Hands-on tutorials, system design, design patterns, DevOps, and AI-assisted development, with working code you can actually run. By developers, for developers.