[Solved] Why do we need a private constructor at all?
We can’t instantiate more than one object at a time via private constructors. No, we can. A private constructor only avoids instance creation outside the class. Therefore, you are responsible for deciding in which cases a new object should be created. And as expected both the strings are being printed. Did I miss something? You … Read more