lundi 19 août 2019

create your own singleton class in c++

i have to write a code in c++ and create a singleton class that can have only single object and creation of second or more objects gives compilation error. I know that 'static' keyword would be used but dont know how exactly?

Aucun commentaire:

Enregistrer un commentaire