Why we declare the constructors as protected or even private?

 

Private constructor: Singleton or static members only.

Protected constructor: Factory.

你可能感兴趣的:(Why we declare the constructors as protected or even private?)