Can the class constructor be private?
Explanation
This makes it impossible to create an instance of the class from the outside of the class and its friends.
C++
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback