Yes.
It is mandatory to have a private constructor implement the singleton design pattern (which is a pattern I quite highly discourage). See codereview.stackexchange.com/a/173935
A protected constructor is a way to create an abstract class. See stackoverflow.com/questions/105722...
Prior to C++11, private constructors were part of the technique to make classes uncopyable. See stackoverflow.com/a/2173764/12342718
Thank you for sharing ...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes.
It is mandatory to have a private constructor implement the singleton design pattern (which is a pattern I quite highly discourage). See codereview.stackexchange.com/a/173935
A protected constructor is a way to create an abstract class. See stackoverflow.com/questions/105722...
Prior to C++11, private constructors were part of the technique to make classes uncopyable. See stackoverflow.com/a/2173764/12342718
Thank you for sharing ...