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

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Sign Up Now
or Subscribe for future quizzes