paint-brush
Design Patterns: Singleton Pattern in Modern C++by@IndianWestCoast
662 reads
662 reads

Design Patterns: Singleton Pattern in Modern C++

by Vishal Chovatiya8mAugust 3rd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Creational Design Patterns deal with object creation mechanisms, i.e. try to create objects in a manner suitable to the situation. The Singleton Design Pattern ensures that a class has only one instance and provides a global point of access to that instance. This is useful when exactly one object need to coordinate actions across the system. Following is a trivial example of the Singleton design pattern in C++. I believe it will encourage you to explore more on this topic. The code snippets you see throughout this series of articles are simplified not sophisticated.
featured image - Design Patterns: Singleton Pattern in Modern C++
Vishal Chovatiya HackerNoon profile picture
Vishal Chovatiya

Vishal Chovatiya

@IndianWestCoast

Software Developer⌨, Fitness Freak🏋, Geek🤓, Hipster🕴, Blogger👨‍💻, Productivity Hacker⌚

Learn More
LEARN MORE ABOUT @INDIANWESTCOAST'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Vishal Chovatiya HackerNoon profile picture
Vishal Chovatiya@IndianWestCoast
Software Developer⌨, Fitness Freak🏋, Geek🤓, Hipster🕴, Blogger👨‍💻, Productivity Hacker⌚

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here