Answers for "what is the effect of keeping a constructor private"

1

what is the effect of keeping a constructor private

By providing a private constructor you prevent class instances from being created in any place other than this very class. There are several use cases for providing such constructor.
Posted by: Guest on April-10-2021

Code answers related to "what is the effect of keeping a constructor private"

Browse Popular Code Answers by Language